From 091af39f8a3b9a9db05eda05db90fbe95fc3cbd2 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Sun, 15 Feb 2026 22:58:15 +0000 Subject: [PATCH] clippy: fix nightly lints --- src/uu/install/src/install.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/uu/install/src/install.rs b/src/uu/install/src/install.rs index b46c4a40a..1277e822a 100644 --- a/src/uu/install/src/install.rs +++ b/src/uu/install/src/install.rs @@ -635,8 +635,7 @@ fn standard(mut paths: Vec, 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 };