Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Commit

Permalink
code fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Nov 12, 2023
1 parent 5c3ef54 commit 045969d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/kernel/lsm/iterator/merging_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ mod tests {
);

assert_eq!(
merging_iter.seek(Seek::Backward(&vec![b'5']))?,
merging_iter.seek(Seek::Backward(&[b'5']))?,
sequence_iter.next().flatten()
);

Expand Down
1 change: 0 additions & 1 deletion src/kernel/lsm/mvcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ impl Transaction {
if let Some(buf) = self.write_buf.take() {
let batch_data = buf
.into_iter()
.map(|(key, value)| (key, value))
.collect_vec();

let is_exceeds = self
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/lsm/table/btree_table/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ mod tests {
assert_eq!(iter.seek(Seek::First)?, Some(vec[0].clone()));

assert_eq!(
iter.seek(Seek::Backward(&vec![b'3']))?,
iter.seek(Seek::Backward(&[b'3']))?,
Some(vec[2].clone())
);

Expand Down

0 comments on commit 045969d

Please sign in to comment.