Skip to content

Commit 9c21392

Browse files
cjlongoriameta-codesync[bot]
authored andcommitted
Fix clippy::unnecessary_map_or issues in fbcode/watchman/cli/src
Reviewed By: dtolnay Differential Revision: D88837554 fbshipit-source-id: 4af50a0b4cba44e789d03b297d90c515a435baf4
1 parent b95d65e commit 9c21392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

watchman/cli/src/audit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fn is_cookie<T: AsRef<Path>>(name: T) -> bool {
6767
name.as_ref()
6868
.file_name()
6969
.and_then(|s| s.to_str())
70-
.map_or(false, |s| s.starts_with(".watchman-cookie-"))
70+
.is_some_and(|s| s.starts_with(".watchman-cookie-"))
7171
}
7272

7373
#[cfg(windows)]

0 commit comments

Comments
 (0)