File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ edition = "2021"
8
8
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
9
9
10
10
[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 "
13
13
# maybe_xml 0.11 regressed perfomance by x2, and because this was the fastest
14
14
# XML parser, we keep benchmarking version 0.10 as well
15
15
maybe_xml_0_10 = { version = " 0.10" , package = " maybe_xml" }
@@ -20,7 +20,7 @@ rusty_xml = { version = "0.3", package = "RustyXML" }
20
20
serde-xml-rs = " 0.8"
21
21
xml_oxide = " 0.3"
22
22
xml-rs = " 0.8"
23
- xml5ever = " 0.22 "
23
+ xml5ever = " 0.35 "
24
24
xmlparser = " 0.13"
25
25
# Do not use "derive" feature, because it slowdown compilation
26
26
# See https://github.com/serde-rs/serde/pull/2588
Original file line number Diff line number Diff line change @@ -233,10 +233,10 @@ fn low_level_comparison(c: &mut Criterion) {
233
233
234
234
fn process_token ( & self , token : Token ) -> ProcessResult < Self :: Handle > {
235
235
match token {
236
- Token :: TagToken ( tag) if tag. kind == TagKind :: StartTag => {
236
+ Token :: Tag ( tag) if tag. kind == TagKind :: StartTag => {
237
237
self . 0 . set ( self . 0 . get ( ) + 1 ) ;
238
238
}
239
- Token :: TagToken ( tag) if tag. kind == TagKind :: EmptyTag => {
239
+ Token :: Tag ( tag) if tag. kind == TagKind :: EmptyTag => {
240
240
self . 0 . set ( self . 0 . get ( ) + 1 ) ;
241
241
}
242
242
_ => ( ) ,
You can’t perform that action at this time.
0 commit comments