Skip to content

Commit bd196a0

Browse files
committed
refactor(timings): use itertools string join
1 parent 4507266 commit bd196a0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/cargo/core/compiler/timings/report.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,13 @@ fn write_summary_table(
123123
duration: f64,
124124
error: &Option<anyhow::Error>,
125125
) -> CargoResult<()> {
126-
let targets: Vec<String> = ctx
126+
let targets = ctx
127127
.root_units
128128
.iter()
129129
.map(|(name, targets)| format!("{} ({})", name, targets.join(", ")))
130-
.collect();
131-
let targets = targets.join("<br>");
130+
.collect::<Vec<_>>()
131+
.join("<br>");
132+
132133
let total_units = ctx.total_fresh + ctx.total_dirty;
133134

134135
let time_human = if duration > 60.0 {

0 commit comments

Comments
 (0)