Skip to content

Commit 93e1731

Browse files
committed
Update maybe_xml to the latest 0.10
1 parent acf605d commit 93e1731

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compare/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ edition = "2021"
99

1010
[dev-dependencies]
1111
criterion = { version = "0.5", features = ["html_reports"] }
12-
maybe_xml = "0.6"
12+
maybe_xml = "0.10"
1313
quick-xml = { path = "..", features = ["serialize"] }
1414
rapid-xml = "0.2"
1515
rusty_xml = { version = "0.3", package = "RustyXML" }

compare/benches/bench.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ fn low_level_comparison(c: &mut Criterion) {
8080
*data,
8181
|b, input| {
8282
use maybe_xml::token::Ty;
83-
use maybe_xml::Lexer;
83+
use maybe_xml::Reader;
8484

8585
b.iter(|| {
86-
let lexer = Lexer::from_slice(input.as_bytes());
86+
let reader = Reader::from_str(input);
8787

8888
let mut count = criterion::black_box(0);
89-
for token in lexer.into_iter() {
89+
for token in reader.into_iter() {
9090
match token.ty() {
9191
Ty::StartTag(_) | Ty::EmptyElementTag(_) => count += 1,
9292
_ => (),

0 commit comments

Comments
 (0)