@@ -1310,22 +1310,19 @@ impl clean::FnDecl {
13101310 /// <br>Used to determine line-wrapping.
13111311 /// * `indent`: The number of spaces to indent each successive line with, if line-wrapping is
13121312 /// necessary.
1313- /// * `asyncness`: Whether the function is async or not.
13141313 pub ( crate ) fn full_print < ' a , ' tcx : ' a > (
13151314 & ' a self ,
13161315 header_len : usize ,
13171316 indent : usize ,
1318- asyncness : hir:: IsAsync ,
13191317 cx : & ' a Context < ' tcx > ,
13201318 ) -> impl fmt:: Display + ' a + Captures < ' tcx > {
1321- display_fn ( move |f| self . inner_full_print ( header_len, indent, asyncness , f, cx) )
1319+ display_fn ( move |f| self . inner_full_print ( header_len, indent, f, cx) )
13221320 }
13231321
13241322 fn inner_full_print (
13251323 & self ,
13261324 header_len : usize ,
13271325 indent : usize ,
1328- asyncness : hir:: IsAsync ,
13291326 f : & mut fmt:: Formatter < ' _ > ,
13301327 cx : & Context < ' _ > ,
13311328 ) -> fmt:: Result {
@@ -1390,15 +1387,9 @@ impl clean::FnDecl {
13901387 args_plain. push_str ( ", ..." ) ;
13911388 }
13921389
1393- let arrow_plain;
1394- let arrow = if let hir:: IsAsync :: Async = asyncness {
1395- let output = self . sugared_async_return_type ( ) ;
1396- arrow_plain = format ! ( "{:#}" , output. print( cx) ) ;
1397- if f. alternate ( ) { arrow_plain. clone ( ) } else { format ! ( "{}" , output. print( cx) ) }
1398- } else {
1399- arrow_plain = format ! ( "{:#}" , self . output. print( cx) ) ;
1400- if f. alternate ( ) { arrow_plain. clone ( ) } else { format ! ( "{}" , self . output. print( cx) ) }
1401- } ;
1390+ let arrow_plain = format ! ( "{:#}" , self . output. print( cx) ) ;
1391+ let arrow =
1392+ if f. alternate ( ) { arrow_plain. clone ( ) } else { format ! ( "{}" , self . output. print( cx) ) } ;
14021393
14031394 let declaration_len = header_len + args_plain. len ( ) + arrow_plain. len ( ) ;
14041395 let output = if declaration_len > 80 {
0 commit comments