Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Aug 7, 2022
1 parent f530947 commit 43d9552
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ fn cargo_bin() -> String {
/// Make up the argv for a cargo check/build/test invocation, not including
/// the cargo binary itself.
pub fn cargo_args(phase: Phase, options: &Options) -> Vec<String> {
let mut cargo_args = Vec::new();
cargo_args.push(phase.name().to_string());
let mut cargo_args = vec![phase.name().to_string()];
if phase == Phase::Check || phase == Phase::Build {
cargo_args.push("--tests".to_string());
}
Expand Down

0 comments on commit 43d9552

Please sign in to comment.