mirror of
https://github.com/rust-lang/cargo
synced 2024-10-02 14:04:23 +00:00
Auto merge of #10340 - hi-rustin:rustin-patch-clippy, r=ehuss
Make clippy happy Remove needless borrow.
This commit is contained in:
commit
f639ea3b96
|
@ -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())?
|
||||
|
|
Loading…
Reference in a new issue