1
Fork 0

Improve accessibility of rustdoc pages

This commit is contained in:
mitaa 2016-04-22 10:16:13 +02:00
parent 645dd013ac
commit bb9ec82563
2 changed files with 4 additions and 3 deletions

View file

@ -2548,10 +2548,11 @@ fn render_impl(w: &mut fmt::Formatter, cx: &Context, i: &Impl, link: AssocItemLi
if !is_static || render_static {
let id = derive_id(format!("{}.{}", shortty, name));
write!(w, "<h4 id='{}' class='{}'>", id, shortty)?;
render_stability_since_raw(w, item.stable_since(), outer_version)?;
write!(w, "<code>")?;
render_assoc_item(w, item, link.anchor(&id))?;
write!(w, "</code></h4>\n")?;
write!(w, "</code>")?;
render_stability_since_raw(w, item.stable_since(), outer_version)?;
write!(w, "</h4>\n")?;
}
}
clean::TypedefItem(ref tydef, _) => {