Fix invalid inlining

This commit is contained in:
Guillaume Gomez 2016-06-12 01:15:33 +02:00
parent 7d8e6dd3bf
commit 7cd891280b
2 changed files with 6 additions and 2 deletions
src/librustdoc/html

@ -2258,8 +2258,8 @@ fn item_struct(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
if fields.peek().is_some() {
write!(w, "<h2 class='fields'>Fields</h2>")?;
for (field, ty) in fields {
write!(w, "<span id='{shortty}.{name}'><code>{name}: {ty}</code></span>
<span class='stab {stab}'></span>",
write!(w, "<span id='{shortty}.{name}' class='{shortty}'><code>{name}: {ty}</code>
</span><span class='stab {stab}'></span>",
shortty = ItemType::StructField,
stab = field.stability_class(),
name = field.name.as_ref().unwrap(),

@ -659,6 +659,10 @@ span.since {
margin-bottom: 25px;
}
.variant, .structfield {
display: block;
}
:target > code {
background: #FDFFD3;
}