diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-10 15:35:35 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-10 15:35:35 +0900 |
| commit | deb44112883ab7ff932b0ab7c547680a615c7821 (patch) | |
| tree | a2f7f2416d8513eef064829e02689610e38760d3 /crates/mozart/src/commands/self_update.rs | |
| parent | 46845eff8d1398f35099a0ef914f77bcaf473287 (diff) | |
| download | php-mozart-deb44112883ab7ff932b0ab7c547680a615c7821.tar.gz php-mozart-deb44112883ab7ff932b0ab7c547680a615c7821.tar.zst php-mozart-deb44112883ab7ff932b0ab7c547680a615c7821.zip | |
refactor(clippy): deny clippy::unused_trait_names
Diffstat (limited to 'crates/mozart/src/commands/self_update.rs')
| -rw-r--r-- | crates/mozart/src/commands/self_update.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/mozart/src/commands/self_update.rs b/crates/mozart/src/commands/self_update.rs index 4b6c27a..74983ba 100644 --- a/crates/mozart/src/commands/self_update.rs +++ b/crates/mozart/src/commands/self_update.rs @@ -2,7 +2,7 @@ use clap::Args; use mozart_core::MOZART_VERSION; use mozart_core::console::IoInterface; use mozart_core::console_writeln; -use std::io::Write; +use std::io::Write as _; use std::path::{Path, PathBuf}; #[derive(Args)] @@ -318,7 +318,7 @@ async fn update( // Set executable permission on Unix #[cfg(unix)] { - use std::os::unix::fs::PermissionsExt; + use std::os::unix::fs::PermissionsExt as _; let mut perms = std::fs::metadata(&tmp_path)?.permissions(); perms.set_mode(0o755); std::fs::set_permissions(&tmp_path, perms) @@ -373,7 +373,7 @@ fn rollback( // Set executable permission on Unix before replacing #[cfg(unix)] { - use std::os::unix::fs::PermissionsExt; + use std::os::unix::fs::PermissionsExt as _; let mut perms = std::fs::metadata(&backup)?.permissions(); perms.set_mode(0o755); std::fs::set_permissions(&backup, perms) |
