mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: get rid of cursor lifetime (#5476)
This commit is contained in:
@ -33,7 +33,7 @@ fn bench_get_seq_iter(c: &mut Criterion) {
|
||||
count += 1;
|
||||
}
|
||||
|
||||
fn iterate<K: TransactionKind>(cursor: &mut Cursor<'_, K>) -> Result<()> {
|
||||
fn iterate<K: TransactionKind>(cursor: &mut Cursor<K>) -> Result<()> {
|
||||
let mut i = 0;
|
||||
for result in cursor.iter::<ObjectLength, ObjectLength>() {
|
||||
let (key_len, data_len) = result?;
|
||||
|
||||
Reference in New Issue
Block a user