File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ fn main() {
142
142
let fname = format ! ( "{}" , e. path. display( ) ) ;
143
143
let filter_cond = filters
144
144
. split ( ',' )
145
- . filter ( |f| f. trim ( ) . len ( ) > 0 )
145
+ . filter ( |f| ! f. trim ( ) . is_empty ( ) )
146
146
. any ( |f| e. name . contains ( & f) || fname. contains ( & f) ) ;
147
147
let status = if e. looks_done ( ) { "Done" } else { "Pending" } ;
148
148
let solve_cond = {
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ fn all_exercises_require_confirmation() {
131
131
file. read_to_string ( & mut s) . unwrap ( ) ;
132
132
s
133
133
} ;
134
- source. matches ( "// I AM NOT DONE" ) . next ( ) . expect ( & format ! (
134
+ source. matches ( "// I AM NOT DONE" ) . next ( ) . unwrap_or_else ( || panic ! (
135
135
"There should be an `I AM NOT DONE` annotation in {:?}" ,
136
136
path
137
137
) ) ;
You can’t perform that action at this time.
0 commit comments