File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 24
24
- uses : actions/checkout@v1
25
25
- name : Build
26
26
run : cargo build
27
+ - name : Build benchmarks
28
+ run : cargo bench --no-run
29
+ - name : Build benchmarks (compare)
30
+ working-directory : compare
31
+ run : cargo bench --no-run
27
32
- name : Run tests (no features)
28
33
env :
29
34
LLVM_PROFILE_FILE : coverage/no-features-%p-%m.profraw
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ fn one_event(c: &mut Criterion) {
202
202
. check_comments ( false )
203
203
. trim_text ( true ) ;
204
204
match r. read_event ( & mut buf) {
205
- Ok ( Event :: Start ( ref e) ) => nbtxt += e. unescaped ( ) . unwrap ( ) . len ( ) ,
205
+ Ok ( Event :: Start ( ref e) ) => nbtxt += e. len ( ) ,
206
206
something_else => panic ! ( "Did not expect {:?}" , something_else) ,
207
207
} ;
208
208
You can’t perform that action at this time.
0 commit comments