diff --git a/src/uu/install/src/install.rs b/src/uu/install/src/install.rs index 1c09f7f34..a93add322 100644 --- a/src/uu/install/src/install.rs +++ b/src/uu/install/src/install.rs @@ -461,6 +461,8 @@ fn standard(mut paths: Vec, b: Behavior) -> UResult<()> { return Err(InstallError::CreateDirFailed(parent.to_path_buf(), e).into()); } + // Silent the warning as we want to the error message + #[allow(clippy::question_mark)] if mode::chmod(parent, b.mode()).is_err() { return Err(InstallError::ChmodFailed(parent.to_path_buf()).into()); } @@ -583,6 +585,8 @@ fn copy(from: &Path, to: &Path, b: &Behavior) -> UResult<()> { } } + // Silent the warning as we want to the error message + #[allow(clippy::question_mark)] if mode::chmod(to, b.mode()).is_err() { return Err(InstallError::ChmodFailed(to.to_path_buf()).into()); }