@@ -1446,11 +1446,11 @@ fn item_proc_macro(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, m: &c
1446
1446
write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) )
1447
1447
}
1448
1448
1449
- fn item_primitive ( w : & mut Buffer , cx : & mut Context < ' _ > , it : & clean:: Item ) {
1449
+ fn item_primitive ( w : & mut impl fmt :: Write , cx : & mut Context < ' _ > , it : & clean:: Item ) {
1450
1450
let def_id = it. item_id . expect_def_id ( ) ;
1451
- write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) ) ;
1451
+ write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) ) . unwrap ( ) ;
1452
1452
if it. name . map ( |n| n. as_str ( ) != "reference" ) . unwrap_or ( false ) {
1453
- write ! ( w, "{}" , render_assoc_items( cx, it, def_id, AssocItemRender :: All ) ) ;
1453
+ write ! ( w, "{}" , render_assoc_items( cx, it, def_id, AssocItemRender :: All ) ) . unwrap ( ) ;
1454
1454
} else {
1455
1455
// We handle the "reference" primitive type on its own because we only want to list
1456
1456
// implementations on generic types.
0 commit comments