mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
clippy: fix nightly lints
This commit is contained in:
committed by
Sylvestre Ledru
parent
a9ac09966b
commit
091af39f8a
@@ -635,8 +635,7 @@ fn standard(mut paths: Vec<OsString>, b: &Behavior) -> UResult<()> {
|
||||
|
||||
let dir_exists = if to_create.exists() {
|
||||
fs::symlink_metadata(to_create)
|
||||
.map(|m| m.is_dir() && !m.file_type().is_symlink())
|
||||
.unwrap_or(false)
|
||||
.is_ok_and(|m| m.is_dir() && !m.file_type().is_symlink())
|
||||
} else {
|
||||
false
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user