diff --git a/crates/oxc_parser/src/module_record.rs b/crates/oxc_parser/src/module_record.rs index 60f0581473aac..014df53851eb1 100644 --- a/crates/oxc_parser/src/module_record.rs +++ b/crates/oxc_parser/src/module_record.rs @@ -55,9 +55,8 @@ impl<'a> ModuleRecordBuilder<'a> { .indirect_export_entries .iter() .filter_map(|export_entry| export_entry.export_name.default_export_span()), - ) - .collect::>(); - if default_exports.len() > 1 { + ); + if default_exports.clone().count() > 1 { errors.push( OxcDiagnostic::error("Duplicated default export").with_labels(default_exports), ); diff --git a/tasks/track_memory_allocations/allocs_parser.snap b/tasks/track_memory_allocations/allocs_parser.snap index f69e9354c6605..b722757854cbf 100644 --- a/tasks/track_memory_allocations/allocs_parser.snap +++ b/tasks/track_memory_allocations/allocs_parser.snap @@ -2,7 +2,7 @@ File | File size || Sys allocs | Sys reallocs | ------------------------------------------------------------------------------------------------------------------------------------------- checker.ts | 2.92 MB || 9672 | 21 || 267681 | 22847 -cal.com.tsx | 1.06 MB || 2212 | 62 || 138162 | 13699 +cal.com.tsx | 1.06 MB || 2211 | 62 || 138162 | 13699 RadixUIAdoptionSection.jsx | 2.52 kB || 1 | 0 || 365 | 66