simplify the implementation of scan (#45)

This commit is contained in:
letterbeezps
2024-02-11 23:41:07 +08:00
committed by GitHub
parent 2077c15e82
commit 1aa53aa17f
2 changed files with 2 additions and 4 deletions

View File

@@ -119,8 +119,7 @@ impl MemTable {
item: (Bytes::new(), Bytes::new()),
}
.build();
let entry = iter.with_iter_mut(|iter| MemTableIterator::entry_to_item(iter.next()));
iter.with_mut(|x| *x.item = entry);
iter.next().unwrap();
iter
}