clippy
This commit is contained in:
+2
-2
@@ -72,7 +72,7 @@ pub fn run_benchmarks(update: bool) -> Vec<BenchmarkResult> {
|
||||
|
||||
for entry in entries.filter_map(|e| e.ok()) {
|
||||
let path = entry.path();
|
||||
if !path.extension().is_some_and(|ext| ext == "myc") {
|
||||
if path.extension().is_none_or(|ext| ext != "myc") {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ pub fn run_benchmarks(update: bool) -> Vec<BenchmarkResult> {
|
||||
}
|
||||
}
|
||||
}
|
||||
if results.last().map_or(false, |r| r.name == name) {
|
||||
if results.last().is_some_and(|r| r.name == name) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user