Auto merge of #10340 - hi-rustin:rustin-patch-clippy, r=ehuss

Make clippy happy

Remove needless borrow.
This commit is contained in:
bors 2022-01-29 19:46:40 +00:00
commit f639ea3b96

View file

@ -116,7 +116,7 @@ pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {
}; };
SourceId::for_git(&url, gitref)? SourceId::for_git(&url, gitref)?
} else if let Some(path) = &path { } else if let Some(path) = &path {
SourceId::for_path(&path)? SourceId::for_path(path)?
} else if krates.is_empty() { } else if krates.is_empty() {
from_cwd = true; from_cwd = true;
SourceId::for_path(config.cwd())? SourceId::for_path(config.cwd())?