We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 728629d commit 8626651Copy full SHA for 8626651
src/helpers.rs
@@ -681,7 +681,7 @@ fn stream_chunks_of_source_map_full<'a>(
681
let mut current_mapping = mappings_iter.next();
682
683
for (current_generated_index, c) in source.char_indices() {
684
- if let Some(mapping) = current_mapping.take() {
+ if let Some(mapping) = current_mapping {
685
if mapping.generated_line == current_generated_line
686
&& mapping.generated_column == current_generated_column
687
{
@@ -703,8 +703,6 @@ fn stream_chunks_of_source_map_full<'a>(
703
tracking_mapping_original = mapping.original;
704
705
current_mapping = mappings_iter.next();
706
- } else {
707
- current_mapping = Some(mapping);
708
}
709
710
0 commit comments