");
- } else {
- w.write_str("
");
- }
- w.write_str(prefix);
- w.write_str("
");
+ render_markdown(w, cx, &s, item.links(cx), is_hidden);
}
}
@@ -1547,30 +1522,21 @@ fn render_impl(
// because impls can't have a stability.
if item.doc_value().is_some() {
document_item_info(w, cx, it, is_hidden, Some(parent));
- document_full(w, item, cx, "", is_hidden);
+ document_full(w, item, cx, is_hidden);
} else {
// In case the item isn't documented,
// provide short documentation from the trait.
- document_short(
- w,
- it,
- cx,
- link,
- "",
- is_hidden,
- Some(parent),
- show_def_docs,
- );
+ document_short(w, it, cx, link, is_hidden, parent, show_def_docs);
}
}
} else {
document_item_info(w, cx, item, is_hidden, Some(parent));
if show_def_docs {
- document_full(w, item, cx, "", is_hidden);
+ document_full(w, item, cx, is_hidden);
}
}
} else {
- document_short(w, item, cx, link, "", is_hidden, Some(parent), show_def_docs);
+ document_short(w, item, cx, link, is_hidden, parent, show_def_docs);
}
}
}