Skip to content

Commit

Permalink
Removed redundant borrow
Browse files Browse the repository at this point in the history
As described here https://rust-lang.github.io/rust-clippy/master/#needless_borrow.
rust-clippy is complaining that the related borrows are unnecessary.
  • Loading branch information
hbina committed Oct 1, 2019
1 parent f4d1b77 commit 55deda0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cargo/ops/cargo_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ fn install_one(
} else {
let tracker = InstallTracker::load(config, root)?;
let (freshness, _duplicates) =
tracker.check_upgrade(&dst, pkg, force, opts, &target, &rustc.verbose_version)?;
tracker.check_upgrade(&dst, pkg, force, opts, target, &rustc.verbose_version)?;
if freshness == Freshness::Fresh {
let msg = format!(
"package `{}` is already installed, use --force to override",
Expand Down Expand Up @@ -341,7 +341,7 @@ fn install_one(
} else {
let tracker = InstallTracker::load(config, root)?;
let (_freshness, duplicates) =
tracker.check_upgrade(&dst, pkg, force, opts, &target, &rustc.verbose_version)?;
tracker.check_upgrade(&dst, pkg, force, opts, target, &rustc.verbose_version)?;
(Some(tracker), duplicates)
};

Expand Down Expand Up @@ -408,7 +408,7 @@ fn install_one(
&successful_bins,
vers.map(|s| s.to_string()),
opts,
&target,
target,
&rustc.verbose_version,
);

Expand Down

0 comments on commit 55deda0

Please sign in to comment.