From 4a795af426aaf3d8bacc8564a00ab93e930a0cc1 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:12:17 +1100 Subject: [PATCH] Fix clippy in zip_extraction.rs Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- crates/binstalk-downloader/src/download/zip_extraction.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/binstalk-downloader/src/download/zip_extraction.rs b/crates/binstalk-downloader/src/download/zip_extraction.rs index 7130699c..0bdfc425 100644 --- a/crates/binstalk-downloader/src/download/zip_extraction.rs +++ b/crates/binstalk-downloader/src/download/zip_extraction.rs @@ -33,7 +33,7 @@ pub(super) fn do_extract_zip(f: File, dir: &Path) -> Result { - extracted_files.add_file(&name); + extracted_files.add_file(name); cfg_if! { if #[cfg(windows)] { do_extract_file()?; @@ -56,7 +56,7 @@ pub(super) fn do_extract_zip(f: File, dir: &Path) -> Result (), EntryKind::File => { - extracted_files.add_file(&name); + extracted_files.add_file(name); do_extract_file()?; } }