@@ -1310,22 +1310,19 @@ impl clean::FnDecl {
1310
1310
/// <br>Used to determine line-wrapping.
1311
1311
/// * `indent`: The number of spaces to indent each successive line with, if line-wrapping is
1312
1312
/// necessary.
1313
- /// * `asyncness`: Whether the function is async or not.
1314
1313
pub ( crate ) fn full_print < ' a , ' tcx : ' a > (
1315
1314
& ' a self ,
1316
1315
header_len : usize ,
1317
1316
indent : usize ,
1318
- asyncness : hir:: IsAsync ,
1319
1317
cx : & ' a Context < ' tcx > ,
1320
1318
) -> 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) )
1322
1320
}
1323
1321
1324
1322
fn inner_full_print (
1325
1323
& self ,
1326
1324
header_len : usize ,
1327
1325
indent : usize ,
1328
- asyncness : hir:: IsAsync ,
1329
1326
f : & mut fmt:: Formatter < ' _ > ,
1330
1327
cx : & Context < ' _ > ,
1331
1328
) -> fmt:: Result {
@@ -1390,15 +1387,9 @@ impl clean::FnDecl {
1390
1387
args_plain. push_str ( ", ..." ) ;
1391
1388
}
1392
1389
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) ) } ;
1402
1393
1403
1394
let declaration_len = header_len + args_plain. len ( ) + arrow_plain. len ( ) ;
1404
1395
let output = if declaration_len > 80 {
0 commit comments