diff --git a/app/benches/db_bench.rs b/app/benches/db_bench.rs index 1fa0bad..87a3035 100644 --- a/app/benches/db_bench.rs +++ b/app/benches/db_bench.rs @@ -79,9 +79,8 @@ fn db_read(c: &mut Criterion) { let reader: Reader = Reader::new(&tmpfile, 2048).expect("new reader"); reader }, - |mut reader| { - let mut reader_iter = reader.iter(); - while let Some(item) = reader_iter.next() { + |reader| { + for item in reader { drop(item); } },