We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63ac3c7 commit 967a6b0Copy full SHA for 967a6b0
src/librustdoc/html/render.rs
@@ -4095,11 +4095,12 @@ impl<'a> fmt::Display for Sidebar<'a> {
4095
write!(fmt,
4096
"<div class='block version'>\
4097
<p>Version {}</p>\
4098
- </div>
4099
- <a id='all-types' href='all.html'><p>See all {}'s items</p></a>",
4100
- version,
4101
- it.name.as_ref().unwrap())?;
+ </div>",
+ version)?;
4102
}
+
+ write!(fmt, "<a id='all-types' href='all.html'><p>See all {}'s items</p></a>",
4103
+ it.name.as_ref().expect("crates always have a name"))?;
4104
4105
4106
write!(fmt, "<div class=\"sidebar-elems\">")?;
0 commit comments