Skip to content

Commit 355e042

Browse files
committed
rust: fix clippy warning
1 parent 7eaf617 commit 355e042

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/bear/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ mod validation {
10561056
}
10571057

10581058
fn is_empty_path(path: &Path) -> bool {
1059-
path.to_str().map_or(false, |p| p.is_empty())
1059+
path.to_str().is_some_and(|p| p.is_empty())
10601060
}
10611061

10621062
#[cfg(test)]

0 commit comments

Comments
 (0)