Skip to content

Commit c5e5d69

Browse files
committed
Migrate to Askama
1 parent 2560b80 commit c5e5d69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/librustdoc/html/render/print_item.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1446,11 +1446,11 @@ fn item_proc_macro(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, m: &c
14461446
write!(w, "{}", document(cx, it, None, HeadingOffset::H2))
14471447
}
14481448

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) {
14501450
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();
14521452
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();
14541454
} else {
14551455
// We handle the "reference" primitive type on its own because we only want to list
14561456
// implementations on generic types.

0 commit comments

Comments
 (0)