diff --git a/src/cargo/ops/cargo_package.rs b/src/cargo/ops/cargo_package.rs index 7b2dc306d..cf02d4a95 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