Skip to content

Commit 3cc9f93

Browse files
style(clippy): fix clippy::unnecessary_map_or
1 parent 89a94cb commit 3cc9f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/package.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl PackageContents {
9494
}
9595

9696
fn is_path_ignored(path: &Path) -> bool {
97-
path.file_name().map_or(false, |name| {
97+
path.file_name().is_some_and(|name| {
9898
[".cargo_vcs_info.json", "Cargo.toml"]
9999
.into_iter()
100100
.any(|n| n == name)

0 commit comments

Comments
 (0)