@@ -2577,20 +2577,20 @@ fn item_function(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2577
2577
let name_len = format ! ( "{}{}{}{}{:#}fn {}{:#}" ,
2578
2578
VisSpace ( & it. visibility) ,
2579
2579
ConstnessSpace ( f. header. constness) ,
2580
- AsyncSpace ( f. header. asyncness) ,
2581
2580
UnsafetySpace ( f. header. unsafety) ,
2581
+ AsyncSpace ( f. header. asyncness) ,
2582
2582
AbiSpace ( f. header. abi) ,
2583
2583
it. name. as_ref( ) . unwrap( ) ,
2584
2584
f. generics) . len ( ) ;
2585
2585
write ! ( w, "{}<pre class='rust fn'>" , render_spotlight_traits( it) ?) ?;
2586
2586
render_attributes ( w, it) ?;
2587
2587
write ! ( w,
2588
- "{vis}{constness}{asyncness}{unsafety }{abi}fn \
2588
+ "{vis}{constness}{unsafety}{asyncness }{abi}fn \
2589
2589
{name}{generics}{decl}{where_clause}</pre>",
2590
2590
vis = VisSpace ( & it. visibility) ,
2591
2591
constness = ConstnessSpace ( f. header. constness) ,
2592
- asyncness = AsyncSpace ( f. header. asyncness) ,
2593
2592
unsafety = UnsafetySpace ( f. header. unsafety) ,
2593
+ asyncness = AsyncSpace ( f. header. asyncness) ,
2594
2594
abi = AbiSpace ( f. header. abi) ,
2595
2595
name = it. name. as_ref( ) . unwrap( ) ,
2596
2596
generics = f. generics,
@@ -3024,10 +3024,11 @@ fn render_assoc_item(w: &mut fmt::Formatter,
3024
3024
href ( did) . map ( |p| format ! ( "{}#{}.{}" , p. 0 , ty, name) ) . unwrap_or ( anchor)
3025
3025
}
3026
3026
} ;
3027
- let mut head_len = format ! ( "{}{}{}{:#}fn {}{:#}" ,
3027
+ let mut head_len = format ! ( "{}{}{}{}{ :#}fn {}{:#}" ,
3028
3028
VisSpace ( & meth. visibility) ,
3029
3029
ConstnessSpace ( header. constness) ,
3030
3030
UnsafetySpace ( header. unsafety) ,
3031
+ AsyncSpace ( header. asyncness) ,
3031
3032
AbiSpace ( header. abi) ,
3032
3033
name,
3033
3034
* g) . len ( ) ;
@@ -3038,11 +3039,12 @@ fn render_assoc_item(w: &mut fmt::Formatter,
3038
3039
( 0 , true )
3039
3040
} ;
3040
3041
render_attributes ( w, meth) ?;
3041
- write ! ( w, "{}{}{}{}fn <a href='{href}' class='fnname'>{name}</a>\
3042
+ write ! ( w, "{}{}{}{}{} fn <a href='{href}' class='fnname'>{name}</a>\
3042
3043
{generics}{decl}{where_clause}",
3043
3044
VisSpace ( & meth. visibility) ,
3044
3045
ConstnessSpace ( header. constness) ,
3045
3046
UnsafetySpace ( header. unsafety) ,
3047
+ AsyncSpace ( header. asyncness) ,
3046
3048
AbiSpace ( header. abi) ,
3047
3049
href = href,
3048
3050
name = name,
0 commit comments