Skip to content

Commit 8626651

Browse files
committed
perf: stream_chunks_of_source_map_full
1 parent 728629d commit 8626651

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/helpers.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ fn stream_chunks_of_source_map_full<'a>(
681681
let mut current_mapping = mappings_iter.next();
682682

683683
for (current_generated_index, c) in source.char_indices() {
684-
if let Some(mapping) = current_mapping.take() {
684+
if let Some(mapping) = current_mapping {
685685
if mapping.generated_line == current_generated_line
686686
&& mapping.generated_column == current_generated_column
687687
{
@@ -703,8 +703,6 @@ fn stream_chunks_of_source_map_full<'a>(
703703
tracking_mapping_original = mapping.original;
704704

705705
current_mapping = mappings_iter.next();
706-
} else {
707-
current_mapping = Some(mapping);
708706
}
709707
}
710708

0 commit comments

Comments
 (0)