simplify the implementation of scan (#45)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user