Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Aug 25, 2024
1 parent 212540c commit 0e57685
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benches/lmdb_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand All @@ -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() {
Expand Down

0 comments on commit 0e57685

Please sign in to comment.