From deb44112883ab7ff932b0ab7c547680a615c7821 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 10 May 2026 15:35:35 +0900 Subject: refactor(clippy): deny clippy::unused_trait_names --- crates/mozart-core/src/repository/downloader.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/mozart-core/src/repository/downloader.rs') diff --git a/crates/mozart-core/src/repository/downloader.rs b/crates/mozart-core/src/repository/downloader.rs index b0d2a6a..56b3652 100644 --- a/crates/mozart-core/src/repository/downloader.rs +++ b/crates/mozart-core/src/repository/downloader.rs @@ -1,8 +1,8 @@ use super::cache::Cache; use indexmap::IndexSet; -use sha1::{Digest, Sha1}; +use sha1::{Digest as _, Sha1}; use std::fs; -use std::io::{Cursor, Read, Write}; +use std::io::{Cursor, Read as _, Write as _}; use std::path::Path; /// A simple download progress tracker that writes to stderr. @@ -230,7 +230,7 @@ pub fn extract_zip(data: &[u8], target_dir: &Path) -> anyhow::Result<()> { // Set permissions on Unix #[cfg(unix)] { - use std::os::unix::fs::PermissionsExt; + use std::os::unix::fs::PermissionsExt as _; if let Some(mode) = entry.unix_mode() { fs::set_permissions(&target_path, fs::Permissions::from_mode(mode))?; } @@ -298,7 +298,7 @@ pub fn extract_tar_gz(data: &[u8], target_dir: &Path) -> anyhow::Result<()> { // Set permissions on Unix #[cfg(unix)] { - use std::os::unix::fs::PermissionsExt; + use std::os::unix::fs::PermissionsExt as _; if let Ok(mode) = entry.header().mode() { fs::set_permissions(&target_path, fs::Permissions::from_mode(mode))?; } -- cgit v1.3.1