From 71b71cc7e17e57e7dca7236e239a6cf5f7b24da2 Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Sat, 26 Feb 2022 12:55:27 +0800 Subject: [PATCH] Make clippy happy Signed-off-by: hi-rustin --- src/bin/cargo/cli.rs | 2 +- src/cargo/ops/cargo_test.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/cargo/cli.rs b/src/bin/cargo/cli.rs index 465d6abd2c0..89f27f1019a 100644 --- a/src/bin/cargo/cli.rs +++ b/src/bin/cargo/cli.rs @@ -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()); diff --git a/src/cargo/ops/cargo_test.rs b/src/cargo/ops/cargo_test.rs index 757405423d1..6d6dc3a5f78 100644 --- a/src/cargo/ops/cargo_test.rs +++ b/src/cargo/ops/cargo_test.rs @@ -282,7 +282,7 @@ fn display_no_run_information( path, script_meta, test_args, - &compilation, + compilation, exec_type, )?; config