Skip to content

Commit 8bfa730

Browse files
committed
fix clippy
1 parent e4f1c33 commit 8bfa730

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

benchmarks/tests/tpch_distributed.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,12 +401,7 @@ fn find_query_file(root: &Path, query_no: usize) -> Option<PathBuf> {
401401
root.join(format!("benchmarks/queries/q{}.sql", query_no)),
402402
root.join(format!("queries/q{}.sql", query_no)),
403403
];
404-
for p in paths {
405-
if p.exists() {
406-
return Some(p);
407-
}
408-
}
409-
None
404+
paths.into_iter().find(|p| p.exists())
410405
}
411406

412407
tpch_test!(q1, 1);

0 commit comments

Comments
 (0)