Skip to content

Commit 9735387

Browse files
authored
fix(timings): forgot to negate filter (#16352)
Wanted to filter out "Other" but missed the `!` Regressed since 1bd6113
2 parents 977254c + 243ff38 commit 9735387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ fn write_unit_table(ctx: &RenderContext<'_>, f: &mut impl Write) -> CargoResult<
283283
.iter()
284284
// We don't want to show the "Other" section in the table,
285285
// as it is usually a tiny portion out of the entire unit.
286-
.filter(|(name, _)| matches!(name, SectionName::Other))
286+
.filter(|(name, _)| !matches!(name, SectionName::Other))
287287
.map(|s| s.0.clone())
288288
.collect()
289289
})

0 commit comments

Comments
 (0)