From 28c11dead76ca76e609bd255c9c3c41f50a92788 Mon Sep 17 00:00:00 2001 From: hdhoang Date: Sat, 22 Oct 2022 16:51:26 +0700 Subject: [PATCH] fix clippy --- .github/workflows/ci.yml | 2 +- src/sync/archive.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30d8c9d..843b1d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -124,7 +124,7 @@ jobs: if [[ ! -x $SYNC_DIR/just ]]; then echo "error on: just"; false; fi if [[ ! -x $SYNC_DIR/k9s ]]; then echo "error on: k9s"; false; fi if [[ ! -x $SYNC_DIR/procs ]]; then echo "error on: procs"; false; fi - if [[ ! -x $SYNC_DIR/shellcheck ]]; then echo "error on: shellcheck; false; fi + if [[ ! -x $SYNC_DIR/shellcheck ]]; then echo "error on: shellcheck"; false; fi # disabled because of: https://github.com/alexcrichton/tar-rs/issues/295 # if [[ ! -x $SYNC_DIR/tokei ]]; then echo "error on: tokei"; false; fi diff --git a/src/sync/archive.rs b/src/sync/archive.rs index cfb04d7..e4747de 100644 --- a/src/sync/archive.rs +++ b/src/sync/archive.rs @@ -140,7 +140,7 @@ fn unpack_tar(tar_path: &PathBuf, tmp_dir: &Path) -> Result<(), IoError> { } fn unpack_zip(zip_path: &PathBuf, tmp_dir: &Path) -> Result<(), UnpackError> { - let zip_archive_file = File::open(&zip_path).map_err(UnpackError::IOError)?; + let zip_archive_file = File::open(zip_path).map_err(UnpackError::IOError)?; let mut archive = zip::ZipArchive::new(zip_archive_file).map_err(UnpackError::ZipError)?;