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