show "all items" link even if crate doesn't have a version

This commit is contained in:
QuietMisdreavus 2018-09-27 09:12:13 -05:00
parent 63ac3c7b94
commit 967a6b0241

View File

@ -4095,11 +4095,12 @@ impl<'a> fmt::Display for Sidebar<'a> {
write!(fmt,
"<div class='block version'>\
<p>Version {}</p>\
</div>
<a id='all-types' href='all.html'><p>See all {}'s items</p></a>",
version,
it.name.as_ref().unwrap())?;
</div>",
version)?;
}
write!(fmt, "<a id='all-types' href='all.html'><p>See all {}'s items</p></a>",
it.name.as_ref().expect("crates always have a name"))?;
}
write!(fmt, "<div class=\"sidebar-elems\">")?;