From 0e576850e8ae66f7c0e845eababd0364c3d9b1e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Sun, 25 Aug 2024 10:03:18 +0200 Subject: [PATCH] Make clippy happy --- benches/lmdb_benchmark.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benches/lmdb_benchmark.rs b/benches/lmdb_benchmark.rs index d694be50..f2197f78 100644 --- a/benches/lmdb_benchmark.rs +++ b/benches/lmdb_benchmark.rs @@ -425,9 +425,9 @@ fn main() { ]; let mut identified_smallests = vec![vec![false; results.len()]; rows.len()]; - for i in 0..rows.len() { + for (i, identified_smallests_row) in identified_smallests.iter_mut().enumerate() { let mut smallest = None; - for j in 0..results.len() { + for (j, _) in identified_smallests_row.iter().enumerate() { let (_, rt) = &results[j][i]; smallest = match smallest { Some((_, prev)) if rt < prev => Some((j, rt)), @@ -436,7 +436,7 @@ fn main() { }; } let (j, _rt) = smallest.unwrap(); - identified_smallests[i][j] = true; + identified_smallests_row[j] = true; } for (j, results) in results.iter().enumerate() {