Skip to content

Commit

Permalink
Update xtask/src/hooks.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
  • Loading branch information
Alexhuszagh and Emilgardis authored Nov 1, 2022
1 parent 0896c95 commit c2ff7ac
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions xtask/src/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,9 @@ pub fn test(
if python {
tests.push("python");
}
let join_to = tests.len() - 1;
let mut joined = tests[0..join_to].join(", ");
if join_to > 1 {
joined.push(',');
}
msg_info.info(format_args!(
"Running {joined} and {} tests.",
tests[join_to]
"Running {} tests.",
tests.join(',')
))?;

let channel = get_channel_prefer_nightly(msg_info, toolchain)?;
Expand Down

0 comments on commit c2ff7ac

Please sign in to comment.