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()?; } }