Skip to content

Commit b08fb14

Browse files
committed
Apply map_unwrap_or to Clippy itself
1 parent ac9a5ab commit b08fb14

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lintcheck/src/input.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,7 @@ impl CrateWithSource {
281281
CrateSource::Path { path } => {
282282
fn is_cache_dir(entry: &DirEntry) -> bool {
283283
fs::read(entry.path().join("CACHEDIR.TAG"))
284-
.map(|x| x.starts_with(b"Signature: 8a477f597d28d172789f06886806bc55"))
285-
.unwrap_or(false)
284+
.is_ok_and(|x| x.starts_with(b"Signature: 8a477f597d28d172789f06886806bc55"))
286285
}
287286

288287
// copy path into the dest_crate_root but skip directories that contain a CACHEDIR.TAG file.

0 commit comments

Comments
 (0)