Skip to content

Commit

Permalink
Auto merge of #10340 - hi-rustin:rustin-patch-clippy, r=ehuss
Browse files Browse the repository at this point in the history
Make clippy happy

Remove needless borrow.
  • Loading branch information
bors committed Jan 29, 2022
2 parents 8906474 + 8b8e918 commit f639ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/cargo/commands/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {
};
SourceId::for_git(&url, gitref)?
} else if let Some(path) = &path {
SourceId::for_path(&path)?
SourceId::for_path(path)?
} else if krates.is_empty() {
from_cwd = true;
SourceId::for_path(config.cwd())?
Expand Down

0 comments on commit f639ea3

Please sign in to comment.