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.1 "
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 @@ -100,13 +100,13 @@ fn low_level_comparison(c: &mut Criterion) {
100100 * data,
101101 |b, input| {
102102 use maybe_xml:: token:: Ty ;
103- use maybe_xml:: Lexer ;
103+ use maybe_xml:: Reader ;
104104
105105 b. iter ( || {
106- let lexer = Lexer :: from_slice ( input. as_bytes ( ) ) ;
106+ let reader = Reader :: from_str ( input) ;
107107
108108 let mut count = criterion:: black_box ( 0 ) ;
109- for token in lexer . into_iter ( ) {
109+ for token in reader . into_iter ( ) {
110110 match token. ty ( ) {
111111 Ty :: StartTag ( _) | Ty :: EmptyElementTag ( _) => count += 1 ,
112112 _ => ( ) ,
You can’t perform that action at this time.
0 commit comments