diff --git a/crates/oxc_mangler/src/lib.rs b/crates/oxc_mangler/src/lib.rs index 3381b58007d62..9a6c78b2b19b2 100644 --- a/crates/oxc_mangler/src/lib.rs +++ b/crates/oxc_mangler/src/lib.rs @@ -574,12 +574,7 @@ impl<'t> Mangler<'t> { .elements .iter() .map(|class_elements| { - class_elements - .iter() - .filter_map(|element| { - if element.is_private { Some(element.name.to_string()) } else { None } - }) - .count() + class_elements.iter().filter(|element| element.is_private).count() }) .collect(); let parent_private_member_count: IndexVec = classes diff --git a/tasks/track_memory_allocations/allocs_minifier.snap b/tasks/track_memory_allocations/allocs_minifier.snap index 3139a114fb1e6..2a6df86e8551f 100644 --- a/tasks/track_memory_allocations/allocs_minifier.snap +++ b/tasks/track_memory_allocations/allocs_minifier.snap @@ -6,7 +6,7 @@ cal.com.tsx | 1.06 MB || 40448 | 3032 | RadixUIAdoptionSection.jsx | 2.52 kB || 85 | 9 || 30 | 6 -pdf.mjs | 567.30 kB || 20495 | 2899 || 47453 | 7730 +pdf.mjs | 567.30 kB || 20193 | 2899 || 47453 | 7730 antd.js | 6.69 MB || 99534 | 13524 || 331649 | 69358