diff --git a/src/cargo/core/compiler/timings/report.rs b/src/cargo/core/compiler/timings/report.rs index 990b966dcb1..f7b7a7ab3f2 100644 --- a/src/cargo/core/compiler/timings/report.rs +++ b/src/cargo/core/compiler/timings/report.rs @@ -283,7 +283,7 @@ fn write_unit_table(ctx: &RenderContext<'_>, f: &mut impl Write) -> CargoResult< .iter() // We don't want to show the "Other" section in the table, // as it is usually a tiny portion out of the entire unit. - .filter(|(name, _)| matches!(name, SectionName::Other)) + .filter(|(name, _)| !matches!(name, SectionName::Other)) .map(|s| s.0.clone()) .collect() })