From 3a26a4aa7f23af2a2fb0b0bd594b093c33014aad Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 28 Mar 2023 15:37:21 +0300 Subject: [PATCH] upd bench --- app/benches/db_bench.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); } },