Skip to content

Commit

Permalink
style: code fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Mar 29, 2024
1 parent b2b25e7 commit f5e4e45
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/types/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1572,9 +1572,9 @@ impl fmt::Debug for DataValue {

#[cfg(test)]
mod test {
use std::sync::Arc;
use crate::errors::DatabaseError;
use crate::types::value::DataValue;
use std::sync::Arc;

#[test]
fn test_mem_comparable_int() -> Result<(), DatabaseError> {
Expand Down Expand Up @@ -1674,17 +1674,20 @@ mod test {
Arc::new(DataValue::Int8(None)),
Arc::new(DataValue::Int8(Some(0))),
Arc::new(DataValue::Int8(Some(1))),
])).memcomparable_encode(&mut key_tuple_1)?;
]))
.memcomparable_encode(&mut key_tuple_1)?;
DataValue::Tuple(Some(vec![
Arc::new(DataValue::Int8(Some(0))),
Arc::new(DataValue::Int8(Some(0))),
Arc::new(DataValue::Int8(Some(1))),
])).memcomparable_encode(&mut key_tuple_2)?;
]))
.memcomparable_encode(&mut key_tuple_2)?;
DataValue::Tuple(Some(vec![
Arc::new(DataValue::Int8(Some(0))),
Arc::new(DataValue::Int8(Some(0))),
Arc::new(DataValue::Int8(Some(2))),
])).memcomparable_encode(&mut key_tuple_3)?;
]))
.memcomparable_encode(&mut key_tuple_3)?;

println!("{:?} < {:?}", key_tuple_1, key_tuple_2);
println!("{:?} < {:?}", key_tuple_2, key_tuple_3);
Expand Down

0 comments on commit f5e4e45

Please sign in to comment.