@@ -1109,7 +1109,7 @@ fn item_typedef(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &clea
1109
1109
fn item_union ( w : & mut Buffer , cx : & mut Context < ' _ > , it : & clean:: Item , s : & clean:: Union ) {
1110
1110
wrap_item ( w, |w| {
1111
1111
render_attributes_in_pre ( w, it, "" ) ;
1112
- render_union ( w, it, Some ( & s. generics ) , & s. fields , "" , cx) ;
1112
+ render_union ( w, it, Some ( & s. generics ) , & s. fields , cx) ;
1113
1113
} ) ;
1114
1114
1115
1115
document ( w, cx, it, None , HeadingOffset :: H2 ) ;
@@ -1628,7 +1628,6 @@ fn render_union(
1628
1628
it : & clean:: Item ,
1629
1629
g : Option < & clean:: Generics > ,
1630
1630
fields : & [ clean:: Item ] ,
1631
- tab : & str ,
1632
1631
cx : & Context < ' _ > ,
1633
1632
) {
1634
1633
let tcx = cx. tcx ( ) ;
@@ -1651,7 +1650,7 @@ fn render_union(
1651
1650
w. write_str ( " " ) ;
1652
1651
}
1653
1652
1654
- write ! ( w, "{{\n {}" , tab ) ;
1653
+ write ! ( w, "{{\n " ) ;
1655
1654
let count_fields =
1656
1655
fields. iter ( ) . filter ( |f| matches ! ( * f. kind, clean:: StructFieldItem ( ..) ) ) . count ( ) ;
1657
1656
let toggle = should_hide_fields ( count_fields) ;
@@ -1663,17 +1662,16 @@ fn render_union(
1663
1662
if let clean:: StructFieldItem ( ref ty) = * field. kind {
1664
1663
write ! (
1665
1664
w,
1666
- " {}{}: {},\n {} " ,
1665
+ " {}{}: {},\n " ,
1667
1666
visibility_print_with_space( field. visibility( tcx) , field. item_id, cx) ,
1668
1667
field. name. unwrap( ) ,
1669
- ty. print( cx) ,
1670
- tab
1668
+ ty. print( cx)
1671
1669
) ;
1672
1670
}
1673
1671
}
1674
1672
1675
1673
if it. has_stripped_entries ( ) . unwrap ( ) {
1676
- write ! ( w, " /* private fields */\n {}" , tab ) ;
1674
+ write ! ( w, " /* private fields */\n " ) ;
1677
1675
}
1678
1676
if toggle {
1679
1677
toggle_close ( w) ;
0 commit comments