Skip to content

Commit

Permalink
fixing clippy linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
alshdavid committed Jan 16, 2024
1 parent 6ef1795 commit 4108e13
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@parcel/source-map",
"version": "2.1.1",
"version": "2.1.2",
"main": "./dist/node.js",
"types": "index.d.ts",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion parcel_sourcemap/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "parcel_sourcemap"
version = "2.1.1"
version = "2.1.2"
authors = [ "Jasper De Moor <jasperdemoor@gmail.com>" ]
edition = "2021"
description = "Parcel Source Map Library"
Expand Down
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 changes: 1 addition & 1 deletion parcel_sourcemap_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["Jasper De Moor <jasperdemoor@gmail.com>"]
edition = "2021"
name = "parcel_sourcemap_node"
version = "2.1.1"
version = "2.1.2"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion parcel_sourcemap_wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "parcel_sourcemap_wasm"
version = "2.1.1"
version = "2.1.2"
authors = ["Jasper De Moor <jasperdemoor@gmail.com>"]
edition = "2021"

Expand Down

2 comments on commit 4108e13

@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: 4108e13 Previous: 6ef1795 Ratio
consume#consume buffer 106790 ops/sec (±1.0e+2%) 105742 ops/sec (±13%) 0.99
consume#consume JS Mappings 75515 ops/sec (±7.5%) 46788 ops/sec (±7.4%) 0.62
consume#consume vlq mappings 70354 ops/sec (±22%) 40540 ops/sec (±21%) 0.58
serialize#Save buffer 416 ops/sec (±0.88%) 366 ops/sec (±2.1%) 0.88
serialize#Serialize to vlq 301 ops/sec (±11%) 195 ops/sec (±13%) 0.65
modify#negative column offset 229438 ops/sec (±26%) 79258 ops/sec (±13%) 0.35
modify#positive column offset 204273 ops/sec (±38%) 75517 ops/sec (±19%) 0.37
modify#negative line offset 155518 ops/sec (±17%) 57800 ops/sec (±12%) 0.37
modify#positive line offset 126077 ops/sec (±15%) 53879 ops/sec (±9.9%) 0.43
append#addSourceMap 243 ops/sec (±0.54%) 190 ops/sec (±11%) 0.78

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: 4108e13 Previous: 6ef1795 Ratio
consume#consume buffer 107394 ops/sec (±99%) 105742 ops/sec (±13%) 0.98
consume#consume vlq mappings 77693 ops/sec (±16%) 40540 ops/sec (±21%) 0.52
consume#consume JS Mappings 73807 ops/sec (±7.5%) 46788 ops/sec (±7.4%) 0.63
serialize#Save buffer 418 ops/sec (±0.85%) 366 ops/sec (±2.1%) 0.88
serialize#Serialize to vlq 298 ops/sec (±11%) 195 ops/sec (±13%) 0.65
modify#negative column offset 207172 ops/sec (±26%) 79258 ops/sec (±13%) 0.38
modify#positive column offset 171283 ops/sec (±32%) 75517 ops/sec (±19%) 0.44
modify#positive line offset 134495 ops/sec (±14%) 53879 ops/sec (±9.9%) 0.40
modify#negative line offset 125390 ops/sec (±14%) 57800 ops/sec (±12%) 0.46
append#addSourceMap 244 ops/sec (±0.73%) 190 ops/sec (±11%) 0.78

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

Please sign in to comment.