File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/rustc_resolve/src Expand file tree Collapse file tree 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 {
344344 let link = link. strip_suffix ( "()" ) . unwrap_or ( link) ;
345345 let link = link. strip_suffix ( "{}" ) . unwrap_or ( link) ;
346346 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 } ;
348348 strip_generics_from_path ( link) . unwrap_or_else ( |_| link. to_string ( ) )
349349}
350350
Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ pub(crate) fn print_where_clause<'a, 'tcx: 'a>(
361361 for _ in 0 ..padding_amout {
362362 br_with_padding. push_str ( " " ) ;
363363 }
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) ;
365365
366366 if ending == Ending :: Newline {
367367 let mut clause = " " . repeat ( indent. saturating_sub ( 1 ) ) ;
@@ -1421,12 +1421,12 @@ impl clean::FnDecl {
14211421 format ! (
14221422 "({pad}{args}{close}){arrow}" ,
14231423 pad = if self . inputs. values. is_empty( ) { "" } else { & full_pad } ,
1424- args = args. replace( " \n " , & full_pad) ,
1424+ args = args. replace( '\n' , & full_pad) ,
14251425 close = close_pad,
14261426 arrow = arrow
14271427 )
14281428 } else {
1429- format ! ( "({args}){arrow}" , args = args. replace( " \n " , " " ) , arrow = arrow)
1429+ format ! ( "({args}){arrow}" , args = args. replace( '\n' , " " ) , arrow = arrow)
14301430 } ;
14311431
14321432 write ! ( f, "{}" , output)
You can’t perform that action at this time.
0 commit comments