Skip to content

Commit

Permalink
Auto merge of #7462 - hbina:redundant_borrow, r=ehuss
Browse files Browse the repository at this point in the history
Removed redundant borrow

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
bors committed Oct 1, 2019
2 parents 368333c + 55deda0 commit 589fa74
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 589fa74

Please sign in to comment.