diff --git a/crates/oxc_codegen/src/sourcemap_builder.rs b/crates/oxc_codegen/src/sourcemap_builder.rs index 043536f30..986f26574 100644 --- a/crates/oxc_codegen/src/sourcemap_builder.rs +++ b/crates/oxc_codegen/src/sourcemap_builder.rs @@ -173,7 +173,7 @@ impl SourcemapBuilder { }); let remaining = &content.as_bytes()[line_byte_offset..]; - for (mut byte_offset_from_line_start, b) in remaining.iter().copied().enumerate() { + for (mut byte_offset_from_line_start, b) in remaining.iter().enumerate() { match b { b'\n' => { byte_offset_from_line_start += 1;