From 8b8e9180e3c17f775bb1d599d181f4e34704695c Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Sat, 29 Jan 2022 22:15:03 +0800 Subject: [PATCH] Make clippy happy Signed-off-by: hi-rustin --- src/bin/cargo/commands/install.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/cargo/commands/install.rs b/src/bin/cargo/commands/install.rs index f0bbb4d7971..ac68d1efabd 100644 --- a/src/bin/cargo/commands/install.rs +++ b/src/bin/cargo/commands/install.rs @@ -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())?