We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
std::iter::repeat
1 parent 8917a5f commit 7d64eb9Copy full SHA for 7d64eb9
crates/oxc_codegen/src/sourcemap_builder.rs
@@ -360,9 +360,7 @@ impl<'a> SourcemapBuilder<'a> {
360
for (chunk_byte_offset, ch) in remaining.char_indices() {
361
#[expect(clippy::cast_possible_truncation)]
362
let mut chunk_byte_offset = chunk_byte_offset as u32;
363
- for _ in 0..ch.len_utf8() {
364
- columns.push(column);
365
- }
+ columns.extend(std::iter::repeat_n(column, ch.len_utf8()));
366
367
match ch {
368
'\r' => {
0 commit comments