Skip to content

Commit b1dcf64

Browse files
authored
Fix clippy warning (#87)
1 parent 5af3647 commit b1dcf64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ fn search_paths(path: &str, extension: &str) -> Result<Vec<String>, Box<dyn std:
9494
for entry in fs::read_dir(path)? {
9595
search_path_recursive(&entry?.path(), extension, result)?;
9696
}
97-
} else if path.extension().map_or(false, |ext| ext == extension) {
97+
} else if path.extension().is_some_and(|ext| ext == extension) {
9898
result.push(path.to_str().unwrap().to_string());
9999
}
100100
Ok(())

0 commit comments

Comments
 (0)