w: &mut Buffer,
it: &clean::Item,
ty: &clean::Type,
- _default: Option<&clean::ConstantKind>,
link: AssocItemLink<'_>,
extra: &str,
cx: &Context<'_>,
clean::MethodItem(ref m, _) => {
method(w, item, m.header, &m.generics, &m.decl, link, parent, cx, render_mode)
}
- clean::AssocConstItem(ref ty, ref default) => assoc_const(
- w,
- item,
- ty,
- default.as_ref(),
- link,
- if parent == ItemType::Trait { " " } else { "" },
- cx,
- ),
+ clean::AssocConstItem(ref ty, _) => {
+ assoc_const(w, item, ty, link, if parent == ItemType::Trait { " " } else { "" }, cx)
+ }
clean::AssocTypeItem(ref bounds, ref default) => assoc_type(
w,
item,
w.write_str("</h4>");
w.write_str("</div>");
}
- clean::AssocConstItem(ref ty, ref default) => {
+ clean::AssocConstItem(ref ty, _) => {
let source_id = format!("{}.{}", item_type, name);
let id = cx.derive_id(source_id.clone());
write!(
w,
item,
ty,
- default.as_ref(),
link.anchor(if trait_.is_some() { &source_id } else { &id }),
"",
cx,