We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2560b80 commit c5e5d69Copy full SHA for c5e5d69
src/librustdoc/html/render/print_item.rs
@@ -1446,11 +1446,11 @@ fn item_proc_macro(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, m: &c
1446
write!(w, "{}", document(cx, it, None, HeadingOffset::H2))
1447
}
1448
1449
-fn item_primitive(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item) {
+fn item_primitive(w: &mut impl fmt::Write, cx: &mut Context<'_>, it: &clean::Item) {
1450
let def_id = it.item_id.expect_def_id();
1451
- write!(w, "{}", document(cx, it, None, HeadingOffset::H2));
+ write!(w, "{}", document(cx, it, None, HeadingOffset::H2)).unwrap();
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));
+ write!(w, "{}", render_assoc_items(cx, it, def_id, AssocItemRender::All)).unwrap();
1454
} else {
1455
// We handle the "reference" primitive type on its own because we only want to list
1456
// implementations on generic types.
0 commit comments