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(
188188) -> TestDescAndFn {
189189 let get_field = |key| {
190190 let field = fields. get ( key) . expect ( "missing field" ) ;
191- field. trim_right_matches ( '\n' ) . to_string ( )
191+ field. trim_end_matches ( '\n' ) . to_string ( )
192192 } ;
193193
194194 let mut data = fields. get ( "data" ) . expect ( "missing data" ) . to_string ( ) ;
195195 data. pop ( ) ;
196196 let expected = get_field ( "document" ) ;
197197 let context = fields
198198 . get ( "document-fragment" )
199- . map ( |field| context_name ( field. trim_right_matches ( '\n' ) ) ) ;
199+ . map ( |field| context_name ( field. trim_end_matches ( '\n' ) ) ) ;
200200 let ignore = ignores. contains ( name) ;
201201 let mut name = name. to_owned ( ) ;
202202 if scripting_enabled {
@@ -293,7 +293,7 @@ fn main() {
293293 let f = fs:: File :: open ( & src_dir. join ( "data/test/ignore" ) ) . unwrap ( ) ;
294294 let r = io:: BufReader :: new ( f) ;
295295 for ln in r. lines ( ) {
296- ignores. insert ( ln. unwrap ( ) . trim_right ( ) . to_string ( ) ) ;
296+ ignores. insert ( ln. unwrap ( ) . trim_end ( ) . to_string ( ) ) ;
297297 }
298298 }
299299
You can’t perform that action at this time.
0 commit comments