Skip to content

Commit

Permalink
Reapply "perf: use forked kuchikiki"
Browse files Browse the repository at this point in the history
This reverts commit 8910e67.
  • Loading branch information
xusd320 committed Jul 19, 2024
1 parent 655d158 commit 1921b18
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resolver = "2"
[workspace.dependencies]
html5ever = "0.27.0"
indexmap = "2.2.6"
kuchikiki = { git = "https://github.com/brave/kuchikiki.git", rev = "28e1ec0" }
kuchikiki = { git = "https://github.com/xusd320/kuchikiki.git", rev = "c671c7b" }

[profile.release]
lto = true
Expand Down
6 changes: 3 additions & 3 deletions crates/niddle_napi/src/node_repr/modify.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use html5ever::LocalName;
use html5ever::{tendril::StrTendril, LocalName};
use indexmap::IndexMap;

use super::NodeRepr;
Expand Down Expand Up @@ -83,7 +83,7 @@ impl NodeRepr {
ele
.attributes
.borrow_mut()
.insert(LocalName::from(name), value);
.insert(LocalName::from(name), StrTendril::from(value));
}
}

Expand All @@ -94,7 +94,7 @@ impl NodeRepr {
ele
.attributes
.borrow_mut()
.insert(LocalName::from(name), value);
.insert(LocalName::from(name), StrTendril::from(value));
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/niddle_napi/src/node_repr/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl NodeRepr {
.iter()
.map(|(expanded_name, attr)| {
let ExpandedName { local, ns: _ } = expanded_name;
(local.to_string(), attr.value.clone())
(local.to_string(), attr.value.to_string())
})
.collect::<IndexMap<String, String>>()
})
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ __metadata:
languageName: node
linkType: hard

"husky@npm:^8.0.0":
"husky@npm:^8.0.3":
version: 8.0.3
resolution: "husky@npm:8.0.3"
bin:
Expand Down Expand Up @@ -1379,7 +1379,7 @@ __metadata:
ava: "npm:^6.0.1"
cheerio: "npm:^1.0.0-rc.12"
htmlparser-benchmark: "npm:^1.1.3"
husky: "npm:^8.0.0"
husky: "npm:^8.0.3"
js-beautify: "npm:^1.15.1"
languageName: unknown
linkType: soft
Expand Down

0 comments on commit 1921b18

Please sign in to comment.