Auto merge of #10426 - hi-rustin:rustin-patch-clippy, r=weihanglo

Make clippy happy

Remove useless borrows.
This commit is contained in:
bors 2022-02-26 06:01:59 +00:00
commit ef3294d93d
2 changed files with 2 additions and 2 deletions

View file

@ -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());

View file

@ -282,7 +282,7 @@ fn display_no_run_information(
path,
script_meta,
test_args,
&compilation,
compilation,
exec_type,
)?;
config