Skip to content

Commit 06dcc20

Browse files
committed
Fix a clippy lint
1 parent d64c168 commit 06dcc20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/ops/cargo_package.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub fn package(ws: &Workspace, opts: &PackageOpts) -> CargoResult<Option<FileLoc
9292
.shell()
9393
.status("Packaging", pkg.package_id().to_string())?;
9494
dst.file().set_len(0)?;
95-
tar(ws, &src_files, vcs_info, dst.file(), &filename)
95+
tar(ws, &src_files, vcs_info.as_ref(), dst.file(), &filename)
9696
.chain_err(|| format_err!("failed to prepare local package for uploading"))?;
9797
if opts.verify {
9898
dst.seek(SeekFrom::Start(0))?;
@@ -269,7 +269,7 @@ fn check_vcs_file_collision(pkg: &Package, src_files: &[PathBuf]) -> CargoResult
269269
fn tar(
270270
ws: &Workspace,
271271
src_files: &[PathBuf],
272-
vcs_info: Option<serde_json::Value>,
272+
vcs_info: Option<&serde_json::Value>,
273273
dst: &File,
274274
filename: &str
275275
) -> CargoResult<()> {

0 commit comments

Comments
 (0)