mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
perf(codegen): avoid unnecessary copy (#2727)
This commit is contained in:
parent
798a1fde09
commit
2be5f9d6c9
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue