File tree 2 files changed +4
-4
lines changed
compiler/rustc_resolve/src
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ fn preprocess_link(link: &str) -> String {
344
344
let link = link. strip_suffix ( "()" ) . unwrap_or ( link) ;
345
345
let link = link. strip_suffix ( "{}" ) . unwrap_or ( link) ;
346
346
let link = link. strip_suffix ( "[]" ) . unwrap_or ( link) ;
347
- let link = if link != "!" { link. strip_suffix ( "!" ) . unwrap_or ( link) } else { link } ;
347
+ let link = if link != "!" { link. strip_suffix ( '!' ) . unwrap_or ( link) } else { link } ;
348
348
strip_generics_from_path ( link) . unwrap_or_else ( |_| link. to_string ( ) )
349
349
}
350
350
Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ pub(crate) fn print_where_clause<'a, 'tcx: 'a>(
361
361
for _ in 0 ..padding_amout {
362
362
br_with_padding. push_str ( " " ) ;
363
363
}
364
- let where_preds = where_preds. to_string ( ) . replace ( " \n " , & br_with_padding) ;
364
+ let where_preds = where_preds. to_string ( ) . replace ( '\n' , & br_with_padding) ;
365
365
366
366
if ending == Ending :: Newline {
367
367
let mut clause = " " . repeat ( indent. saturating_sub ( 1 ) ) ;
@@ -1419,12 +1419,12 @@ impl clean::FnDecl {
1419
1419
format ! (
1420
1420
"({pad}{args}{close}){arrow}" ,
1421
1421
pad = if self . inputs. values. is_empty( ) { "" } else { & full_pad } ,
1422
- args = args. replace( " \n " , & full_pad) ,
1422
+ args = args. replace( '\n' , & full_pad) ,
1423
1423
close = close_pad,
1424
1424
arrow = arrow
1425
1425
)
1426
1426
} else {
1427
- format ! ( "({args}){arrow}" , args = args. replace( " \n " , " " ) , arrow = arrow)
1427
+ format ! ( "({args}){arrow}" , args = args. replace( '\n' , " " ) , arrow = arrow)
1428
1428
} ;
1429
1429
1430
1430
write ! ( f, "{}" , output)
You can’t perform that action at this time.
0 commit comments