@@ -3554,7 +3554,7 @@ fn item_enum(w: &mut fmt::Formatter<'_>, cx: &Context, it: &clean::Item,
3554
3554
let ns_id = cx. derive_id ( format ! ( "{}.{}" ,
3555
3555
variant. name. as_ref( ) . unwrap( ) ,
3556
3556
ItemType :: Variant . name_space( ) ) ) ;
3557
- write ! ( w, "<span id=\" {id}\" class=\" variant small-section-header\" >\
3557
+ write ! ( w, "<div id=\" {id}\" class=\" variant small-section-header\" >\
3558
3558
<a href=\" #{id}\" class=\" anchor field\" ></a>\
3559
3559
<code id='{ns_id}'>{name}",
3560
3560
id = id,
@@ -3572,7 +3572,7 @@ fn item_enum(w: &mut fmt::Formatter<'_>, cx: &Context, it: &clean::Item,
3572
3572
write ! ( w, ")" ) ?;
3573
3573
}
3574
3574
}
3575
- write ! ( w, "</code></span >" ) ?;
3575
+ write ! ( w, "</code></div >" ) ?;
3576
3576
document ( w, cx, variant) ?;
3577
3577
document_non_exhaustive ( w, variant) ?;
3578
3578
@@ -3583,7 +3583,7 @@ fn item_enum(w: &mut fmt::Formatter<'_>, cx: &Context, it: &clean::Item,
3583
3583
let variant_id = cx. derive_id ( format ! ( "{}.{}.fields" ,
3584
3584
ItemType :: Variant ,
3585
3585
variant. name. as_ref( ) . unwrap( ) ) ) ;
3586
- write ! ( w, "<span class='autohide sub-variant' id='{id}'>" ,
3586
+ write ! ( w, "<div class='autohide sub-variant' id='{id}'>" ,
3587
3587
id = variant_id) ?;
3588
3588
write ! ( w, "<h3>Fields of <b>{name}</b></h3><div>" ,
3589
3589
name = variant. name. as_ref( ) . unwrap( ) ) ?;
@@ -3609,7 +3609,7 @@ fn item_enum(w: &mut fmt::Formatter<'_>, cx: &Context, it: &clean::Item,
3609
3609
document ( w, cx, field) ?;
3610
3610
}
3611
3611
}
3612
- write ! ( w, "</div></span >" ) ?;
3612
+ write ! ( w, "</div></div >" ) ?;
3613
3613
}
3614
3614
render_stability_since ( w, variant, it) ?;
3615
3615
}
0 commit comments