feat: get rid of cursor lifetime (#5476)

This commit is contained in:
Matthias Seitz
2023-11-17 21:37:34 +01:00
committed by GitHub
parent 9b1416b4f4
commit 7f9ce6f7c0
10 changed files with 194 additions and 213 deletions

View File

@ -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?;