@@ -1237,7 +1237,7 @@ fn item_type_alias(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &c
1237
1237
1238
1238
write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) ) ;
1239
1239
1240
- if let Some ( inner_type) = & t. inner_type && t . should_display_inner_type ( ) {
1240
+ if let Some ( inner_type) = & t. inner_type {
1241
1241
write ! (
1242
1242
w,
1243
1243
"<h2 id=\" aliased-type\" class=\" small-section-header\" >\
@@ -1256,7 +1256,7 @@ fn item_type_alias(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &c
1256
1256
render_enum_fields (
1257
1257
w,
1258
1258
cx,
1259
- None ,
1259
+ Some ( & t . generics ) ,
1260
1260
variants_iter ( ) ,
1261
1261
variants_count,
1262
1262
has_stripped_entries,
@@ -1271,7 +1271,16 @@ fn item_type_alias(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &c
1271
1271
let has_stripped_fields = fields. len ( ) != fields_count;
1272
1272
1273
1273
write ! ( w, "union {}{}" , it. name. unwrap( ) , t. generics. print( cx) ) ;
1274
- render_struct_fields ( w, None , None , fields, "" , true , has_stripped_fields, cx) ;
1274
+ render_struct_fields (
1275
+ w,
1276
+ Some ( & t. generics ) ,
1277
+ None ,
1278
+ fields,
1279
+ "" ,
1280
+ true ,
1281
+ has_stripped_fields,
1282
+ cx,
1283
+ ) ;
1275
1284
} ) ;
1276
1285
item_fields ( w, cx, it, fields, None ) ;
1277
1286
}
@@ -1283,7 +1292,7 @@ fn item_type_alias(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &c
1283
1292
write ! ( w, "struct {}{}" , it. name. unwrap( ) , t. generics. print( cx) ) ;
1284
1293
render_struct_fields (
1285
1294
w,
1286
- None ,
1295
+ Some ( & t . generics ) ,
1287
1296
* ctor_kind,
1288
1297
fields,
1289
1298
"" ,
0 commit comments