From 91f064889976d43c711a9da488eeda07c0540e53 Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Wed, 28 Jul 2021 14:59:43 +0800 Subject: [PATCH] Make clippy happy Signed-off-by: hi-rustin --- src/cargo/ops/cargo_package.rs | 8 ++++---- src/cargo/ops/registry.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cargo/ops/cargo_package.rs b/src/cargo/ops/cargo_package.rs index 7b2dc306d44..cf02d4a95c6 100644 --- a/src/cargo/ops/cargo_package.rs +++ b/src/cargo/ops/cargo_package.rs @@ -93,7 +93,7 @@ pub fn package_one( None }; - let ar_files = build_ar_list(&ws, pkg, src_files, vcs_info)?; + let ar_files = build_ar_list(ws, pkg, src_files, vcs_info)?; if opts.list { for ar_file in ar_files { @@ -123,11 +123,11 @@ pub fn package_one( .shell() .status("Packaging", pkg.package_id().to_string())?; dst.file().set_len(0)?; - tar(&ws, pkg, ar_files, dst.file(), &filename) + tar(ws, pkg, ar_files, dst.file(), &filename) .with_context(|| "failed to prepare local package for uploading")?; if opts.verify { dst.seek(SeekFrom::Start(0))?; - run_verify(&ws, pkg, &dst, opts).with_context(|| "failed to verify package tarball")? + run_verify(ws, pkg, &dst, opts).with_context(|| "failed to verify package tarball")? } dst.seek(SeekFrom::Start(0))?; @@ -149,7 +149,7 @@ pub fn package(ws: &Workspace<'_>, opts: &PackageOpts<'_>) -> CargoResult