Skip to content

Commit

Permalink
fixing clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
alshdavid committed Jan 17, 2024
1 parent 6ef1795 commit dc16601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parcel_sourcemap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ impl SourceMap {
}
}

for (_generated_line, line_content) in self.inner.mapping_lines.iter_mut().enumerate() {
for line_content in self.inner.mapping_lines.iter_mut() {
for mapping in line_content.mappings.iter_mut() {
let original_location_option = &mut mapping.original;
if let Some(original_location) = original_location_option {
Expand Down

2 comments on commit dc16601

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parcel sourcemap benchmark

Benchmark suite Current: dc16601 Previous: 6ef1795 Ratio
consume#consume buffer 214159 ops/sec (±13%) 105742 ops/sec (±13%) 0.49
consume#consume JS Mappings 73572 ops/sec (±7.2%) 46788 ops/sec (±7.4%) 0.64
consume#consume vlq mappings 56459 ops/sec (±12%) 40540 ops/sec (±21%) 0.72
serialize#Save buffer 410 ops/sec (±0.83%) 366 ops/sec (±2.1%) 0.89
serialize#Serialize to vlq 273 ops/sec (±14%) 195 ops/sec (±13%) 0.71
modify#negative column offset 174317 ops/sec (±23%) 79258 ops/sec (±13%) 0.45
modify#positive column offset 149188 ops/sec (±30%) 75517 ops/sec (±19%) 0.51
modify#negative line offset 115256 ops/sec (±13%) 57800 ops/sec (±12%) 0.50
modify#positive line offset 114720 ops/sec (±13%) 53879 ops/sec (±9.9%) 0.47
append#addSourceMap 293 ops/sec (±7.7%) 190 ops/sec (±11%) 0.65

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parcel sourcemap benchmark

Benchmark suite Current: dc16601 Previous: 6ef1795 Ratio
consume#consume buffer 89431 ops/sec (±1.1e+2%) 105742 ops/sec (±13%) 1.18
consume#consume JS Mappings 58600 ops/sec (±8.1%) 46788 ops/sec (±7.4%) 0.80
consume#consume vlq mappings 56532 ops/sec (±13%) 40540 ops/sec (±21%) 0.72
serialize#Save buffer 412 ops/sec (±0.67%) 366 ops/sec (±2.1%) 0.89
serialize#Serialize to vlq 300 ops/sec (±11%) 195 ops/sec (±13%) 0.65
modify#negative column offset 196521 ops/sec (±24%) 79258 ops/sec (±13%) 0.40
modify#positive column offset 189803 ops/sec (±34%) 75517 ops/sec (±19%) 0.40
modify#negative line offset 149200 ops/sec (±17%) 57800 ops/sec (±12%) 0.39
modify#positive line offset 138949 ops/sec (±15%) 53879 ops/sec (±9.9%) 0.39
append#addSourceMap 309 ops/sec (±3.1%) 190 ops/sec (±11%) 0.61

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.