@@ -1457,11 +1457,11 @@ fn item_proc_macro( |
|
|
1457 |
1457 |
write!(w, "{}{}", buffer.into_inner(), document(cx, it, None, HeadingOffset::H2)).unwrap(); |
1458 |
1458 |
} |
1459 |
1459 |
|
1460 |
|
-fn item_primitive(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item) { |
|
1460 |
+fn item_primitive(w: &mut impl fmt::Write, cx: &mut Context<'_>, it: &clean::Item) { |
1461 |
1461 |
let def_id = it.item_id.expect_def_id(); |
1462 |
|
-write!(w, "{}", document(cx, it, None, HeadingOffset::H2)); |
|
1462 |
+write!(w, "{}", document(cx, it, None, HeadingOffset::H2)).unwrap(); |
1463 |
1463 |
if it.name.map(|n |
1464 |
|
-write!(w, "{}", render_assoc_items(cx, it, def_id, AssocItemRender::All)); |
|
1464 |
+write!(w, "{}", render_assoc_items(cx, it, def_id, AssocItemRender::All)).unwrap(); |
1465 |
1465 |
} else { |
1466 |
1466 |
// We handle the "reference" primitive type on its own because we only want to list |
1467 |
1467 |
// implementations on generic types. |