Skip to content

Commit

Permalink
Fix a clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dekellum committed Aug 16, 2018
1 parent d64c168 commit 06dcc20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/ops/cargo_package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub fn package(ws: &Workspace, opts: &PackageOpts) -> CargoResult<Option<FileLoc
.shell()
.status("Packaging", pkg.package_id().to_string())?;
dst.file().set_len(0)?;
tar(ws, &src_files, vcs_info, dst.file(), &filename)
tar(ws, &src_files, vcs_info.as_ref(), dst.file(), &filename)
.chain_err(|| format_err!("failed to prepare local package for uploading"))?;
if opts.verify {
dst.seek(SeekFrom::Start(0))?;
Expand Down Expand Up @@ -269,7 +269,7 @@ fn check_vcs_file_collision(pkg: &Package, src_files: &[PathBuf]) -> CargoResult
fn tar(
ws: &Workspace,
src_files: &[PathBuf],
vcs_info: Option<serde_json::Value>,
vcs_info: Option<&serde_json::Value>,
dst: &File,
filename: &str
) -> CargoResult<()> {
Expand Down

0 comments on commit 06dcc20

Please sign in to comment.