show "all items" link even if crate doesn't have a version
This commit is contained in:
parent
63ac3c7b94
commit
967a6b0241
1 changed files with 5 additions and 4 deletions
|
@ -4095,11 +4095,12 @@ impl<'a> fmt::Display for Sidebar<'a> {
|
||||||
write!(fmt,
|
write!(fmt,
|
||||||
"<div class='block version'>\
|
"<div class='block version'>\
|
||||||
<p>Version {}</p>\
|
<p>Version {}</p>\
|
||||||
</div>
|
</div>",
|
||||||
<a id='all-types' href='all.html'><p>See all {}'s items</p></a>",
|
version)?;
|
||||||
version,
|
|
||||||
it.name.as_ref().unwrap())?;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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\">")?;
|
write!(fmt, "<div class=\"sidebar-elems\">")?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue