File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ edition = "2021"
99
1010[dev-dependencies ]
1111criterion = { version = " 0.5" , features = [" html_reports" ] }
12- maybe_xml = " 0.6 "
12+ maybe_xml = " 0.10 "
1313quick-xml = { path = " .." , features = [" serialize" ] }
1414rapid-xml = " 0.2"
1515rusty_xml = { version = " 0.3" , package = " RustyXML" }
Original file line number Diff line number Diff 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 _ => ( ) ,
You can’t perform that action at this time.
0 commit comments