Skip to content

Commit ef3294d

Browse files
committed
Auto merge of #10426 - hi-rustin:rustin-patch-clippy, r=weihanglo
Make clippy happy Remove useless borrows.
2 parents c9a8199 + 71b71cc commit ef3294d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/cargo/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub fn main(config: &mut Config) -> CliResult {
4747
_ => None,
4848
})
4949
.expect("UnrecognizedSubcommand implies the presence of InvalidSubcommand");
50-
return super::execute_external_subcommand(config, &cmd, &[&cmd, "--help"])
50+
return super::execute_external_subcommand(config, cmd, &[cmd, "--help"])
5151
.map_err(|_| e.into());
5252
} else {
5353
return Err(e.into());

src/cargo/ops/cargo_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ fn display_no_run_information(
282282
path,
283283
script_meta,
284284
test_args,
285-
&compilation,
285+
compilation,
286286
exec_type,
287287
)?;
288288
config

0 commit comments

Comments
 (0)