mirror of
https://github.com/rust-lang/cargo
synced 2024-08-28 19:59:27 +00:00
Auto merge of #10426 - hi-rustin:rustin-patch-clippy, r=weihanglo
Make clippy happy Remove useless borrows.
This commit is contained in:
commit
ef3294d93d
|
@ -47,7 +47,7 @@ pub fn main(config: &mut Config) -> CliResult {
|
|||
_ => None,
|
||||
})
|
||||
.expect("UnrecognizedSubcommand implies the presence of InvalidSubcommand");
|
||||
return super::execute_external_subcommand(config, &cmd, &[&cmd, "--help"])
|
||||
return super::execute_external_subcommand(config, cmd, &[cmd, "--help"])
|
||||
.map_err(|_| e.into());
|
||||
} else {
|
||||
return Err(e.into());
|
||||
|
|
|
@ -282,7 +282,7 @@ fn display_no_run_information(
|
|||
path,
|
||||
script_meta,
|
||||
test_args,
|
||||
&compilation,
|
||||
compilation,
|
||||
exec_type,
|
||||
)?;
|
||||
config
|
||||
|
|
Loading…
Reference in a new issue