mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Fix clippy in zip_extraction.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
360cb23d00
commit
4a795af426
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ pub(super) fn do_extract_zip(f: File, dir: &Path) -> Result<ExtractedFiles, Down
|
|||
|
||||
match entry.kind() {
|
||||
EntryKind::Symlink => {
|
||||
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<ExtractedFiles, Down
|
|||
}
|
||||
EntryKind::Directory => (),
|
||||
EntryKind::File => {
|
||||
extracted_files.add_file(&name);
|
||||
extracted_files.add_file(name);
|
||||
do_extract_file()?;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue