We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
map_unwrap_or
1 parent 3b607cb commit faacc86Copy full SHA for faacc86
lintcheck/src/input.rs
@@ -281,8 +281,7 @@ impl CrateWithSource {
281
CrateSource::Path { path } => {
282
fn is_cache_dir(entry: &DirEntry) -> bool {
283
fs::read(entry.path().join("CACHEDIR.TAG"))
284
- .map(|x| x.starts_with(b"Signature: 8a477f597d28d172789f06886806bc55"))
285
- .unwrap_or(false)
+ .is_ok_and(|x| x.starts_with(b"Signature: 8a477f597d28d172789f06886806bc55"))
286
}
287
288
// copy path into the dest_crate_root but skip directories that contain a CACHEDIR.TAG file.
0 commit comments