Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hdhoang committed Oct 22, 2022
1 parent ca8aeea commit 2cf1e17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/sync/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;

Expand Down

0 comments on commit 2cf1e17

Please sign in to comment.