File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ edition = "2021"
9
9
10
10
[dev-dependencies ]
11
11
criterion = { version = " 0.5" , features = [" html_reports" ] }
12
- maybe_xml = " 0.6 "
12
+ maybe_xml = " 0.10.1 "
13
13
quick-xml = { path = " .." , features = [" serialize" ] }
14
14
rapid-xml = " 0.2"
15
15
rusty_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) {
100
100
* data,
101
101
|b, input| {
102
102
use maybe_xml:: token:: Ty ;
103
- use maybe_xml:: Lexer ;
103
+ use maybe_xml:: Reader ;
104
104
105
105
b. iter ( || {
106
- let lexer = Lexer :: from_slice ( input. as_bytes ( ) ) ;
106
+ let reader = Reader :: from_str ( input) ;
107
107
108
108
let mut count = criterion:: black_box ( 0 ) ;
109
- for token in lexer . into_iter ( ) {
109
+ for token in reader . into_iter ( ) {
110
110
match token. ty ( ) {
111
111
Ty :: StartTag ( _) | Ty :: EmptyElementTag ( _) => count += 1 ,
112
112
_ => ( ) ,
You can’t perform that action at this time.
0 commit comments