Skip to content

Commit 850ea70

Browse files
committed
chore: make clippy happy on nightly builds
1 parent 577ea0d commit 850ea70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search_unused.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ fn collect_paths(dir_path: &Path, analysis: &PackageAnalysis) -> Vec<PathBuf> {
181181
if dir_entry
182182
.path()
183183
.extension()
184-
.map_or(true, |ext| ext.to_string_lossy() != "rs")
184+
.is_none_or(|ext| ext.to_string_lossy() != "rs")
185185
{
186186
return None;
187187
}

0 commit comments

Comments
 (0)