diff options
Diffstat (limited to 'src/librustdoc/html/render.rs')
| -rw-r--r-- | src/librustdoc/html/render.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index 1c61e73fae0..23f1e15de3c 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -4098,12 +4098,13 @@ impl<'a> fmt::Display for Sidebar<'a> { </div>", version)?; } + } + write!(fmt, "<div class=\"sidebar-elems\">")?; + if it.is_crate() { 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\">")?; match it.inner { clean::StructItem(ref s) => sidebar_struct(fmt, it, s)?, clean::TraitItem(ref t) => sidebar_trait(fmt, it, t)?, |
