Skip to content

Commit c359a00

Browse files
committed
Update xml5ever 0.22 -> 0.35 (and related markup5ever 0.16 -> 0.35)
1 parent 6ed8631 commit c359a00

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compare/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ edition = "2021"
88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
99

1010
[dev-dependencies]
11-
criterion = { version = "0.6", features = ["html_reports"] }
12-
markup5ever = "0.16"
11+
criterion = { version = "0.7", features = ["html_reports"] }
12+
markup5ever = "0.35"
1313
# maybe_xml 0.11 regressed perfomance by x2, and because this was the fastest
1414
# XML parser, we keep benchmarking version 0.10 as well
1515
maybe_xml_0_10 = { version = "0.10", package = "maybe_xml" }
@@ -20,7 +20,7 @@ rusty_xml = { version = "0.3", package = "RustyXML" }
2020
serde-xml-rs = "0.8"
2121
xml_oxide = "0.3"
2222
xml-rs = "0.8"
23-
xml5ever = "0.22"
23+
xml5ever = "0.35"
2424
xmlparser = "0.13"
2525
# Do not use "derive" feature, because it slowdown compilation
2626
# See https://github.com/serde-rs/serde/pull/2588

compare/benches/low-level.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ fn low_level_comparison(c: &mut Criterion) {
233233

234234
fn process_token(&self, token: Token) -> ProcessResult<Self::Handle> {
235235
match token {
236-
Token::TagToken(tag) if tag.kind == TagKind::StartTag => {
236+
Token::Tag(tag) if tag.kind == TagKind::StartTag => {
237237
self.0.set(self.0.get() + 1);
238238
}
239-
Token::TagToken(tag) if tag.kind == TagKind::EmptyTag => {
239+
Token::Tag(tag) if tag.kind == TagKind::EmptyTag => {
240240
self.0.set(self.0.get() + 1);
241241
}
242242
_ => (),

0 commit comments

Comments
 (0)