File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -188,15 +188,15 @@ fn make_test_desc_with_scripting_flag(
188
188
) -> TestDescAndFn {
189
189
let get_field = |key| {
190
190
let field = fields. get ( key) . expect ( "missing field" ) ;
191
- field. trim_right_matches ( '\n' ) . to_string ( )
191
+ field. trim_end_matches ( '\n' ) . to_string ( )
192
192
} ;
193
193
194
194
let mut data = fields. get ( "data" ) . expect ( "missing data" ) . to_string ( ) ;
195
195
data. pop ( ) ;
196
196
let expected = get_field ( "document" ) ;
197
197
let context = fields
198
198
. get ( "document-fragment" )
199
- . map ( |field| context_name ( field. trim_right_matches ( '\n' ) ) ) ;
199
+ . map ( |field| context_name ( field. trim_end_matches ( '\n' ) ) ) ;
200
200
let ignore = ignores. contains ( name) ;
201
201
let mut name = name. to_owned ( ) ;
202
202
if scripting_enabled {
@@ -293,7 +293,7 @@ fn main() {
293
293
let f = fs:: File :: open ( & src_dir. join ( "data/test/ignore" ) ) . unwrap ( ) ;
294
294
let r = io:: BufReader :: new ( f) ;
295
295
for ln in r. lines ( ) {
296
- ignores. insert ( ln. unwrap ( ) . trim_right ( ) . to_string ( ) ) ;
296
+ ignores. insert ( ln. unwrap ( ) . trim_end ( ) . to_string ( ) ) ;
297
297
}
298
298
}
299
299
You can’t perform that action at this time.
0 commit comments