Skip to content

Commit

Permalink
Update maybe_xml to the latest 0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingun committed Dec 2, 2023
1 parent a5219e9 commit 82cc0da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compare/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"

[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
maybe_xml = "0.6"
maybe_xml = "0.10.1"
quick-xml = { path = "..", features = ["serialize"] }
rapid-xml = "0.2"
rusty_xml = { version = "0.3", package = "RustyXML" }
Expand Down
6 changes: 3 additions & 3 deletions compare/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ fn low_level_comparison(c: &mut Criterion) {
*data,
|b, input| {
use maybe_xml::token::Ty;
use maybe_xml::Lexer;
use maybe_xml::Reader;

b.iter(|| {
let lexer = Lexer::from_slice(input.as_bytes());
let reader = Reader::from_str(input);

let mut count = criterion::black_box(0);
for token in lexer.into_iter() {
for token in reader.into_iter() {
match token.ty() {
Ty::StartTag(_) | Ty::EmptyElementTag(_) => count += 1,
_ => (),
Expand Down

0 comments on commit 82cc0da

Please sign in to comment.