Skip to content

Commit

Permalink
chore: make clippy happy on nightly builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjbvr committed Jan 6, 2025
1 parent 577ea0d commit 850ea70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search_unused.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ fn collect_paths(dir_path: &Path, analysis: &PackageAnalysis) -> Vec<PathBuf> {
if dir_entry
.path()
.extension()
.map_or(true, |ext| ext.to_string_lossy() != "rs")
.is_none_or(|ext| ext.to_string_lossy() != "rs")
{
return None;
}
Expand Down

0 comments on commit 850ea70

Please sign in to comment.