@@ -1744,13 +1744,6 @@ fn print_sidebar(cx: &Context<'_>, it: &clean::Item, buffer: &mut Buffer) {
1744
1744
buffer,
1745
1745
"<h2 class=\" location\" ><a href=\" #\" >{}{}</a></h2>" ,
1746
1746
match * it. kind {
1747
- clean:: StructItem ( ..) => "Struct " ,
1748
- clean:: TraitItem ( ..) => "Trait " ,
1749
- clean:: PrimitiveItem ( ..) => "Primitive Type " ,
1750
- clean:: UnionItem ( ..) => "Union " ,
1751
- clean:: EnumItem ( ..) => "Enum " ,
1752
- clean:: TypedefItem ( ..) => "Type Definition " ,
1753
- clean:: ForeignTypeItem => "Foreign Type " ,
1754
1747
clean:: ModuleItem ( ..) =>
1755
1748
if it. is_crate( ) {
1756
1749
"Crate "
@@ -1763,26 +1756,14 @@ fn print_sidebar(cx: &Context<'_>, it: &clean::Item, buffer: &mut Buffer) {
1763
1756
) ;
1764
1757
}
1765
1758
1759
+ buffer. write_str ( "<div class=\" sidebar-elems\" >" ) ;
1766
1760
if it. is_crate ( ) {
1761
+ write ! ( buffer, "<div class=\" block\" ><ul>" ) ;
1767
1762
if let Some ( ref version) = cx. cache ( ) . crate_version {
1768
- write ! (
1769
- buffer,
1770
- "<div class=\" block version\" >\
1771
- <div class=\" narrow-helper\" ></div>\
1772
- <p>Version {}</p>\
1773
- </div>",
1774
- Escape ( version) ,
1775
- ) ;
1763
+ write ! ( buffer, "<li class=\" version\" >Version {}</li>" , Escape ( version) ) ;
1776
1764
}
1777
- }
1778
-
1779
- buffer. write_str ( "<div class=\" sidebar-elems\" >" ) ;
1780
- if it. is_crate ( ) {
1781
- write ! (
1782
- buffer,
1783
- "<a id=\" all-types\" href=\" all.html\" ><p>See all {}'s items</p></a>" ,
1784
- it. name. as_ref( ) . expect( "crates always have a name" ) ,
1785
- ) ;
1765
+ write ! ( buffer, "<li><a id=\" all-types\" href=\" all.html\" >All Items</a></li>" ) ;
1766
+ buffer. write_str ( "</div></ul>" ) ;
1786
1767
}
1787
1768
1788
1769
match * it. kind {
@@ -1806,7 +1787,7 @@ fn print_sidebar(cx: &Context<'_>, it: &clean::Item, buffer: &mut Buffer) {
1806
1787
// to navigate the documentation (though slightly inefficiently).
1807
1788
1808
1789
if !it. is_mod ( ) {
1809
- buffer. write_str ( "<h2 class=\" location\" >Other items in<br> " ) ;
1790
+ buffer. write_str ( "<h2 class=\" location\" >In " ) ;
1810
1791
for ( i, name) in cx. current . iter ( ) . take ( parentlen) . enumerate ( ) {
1811
1792
if i > 0 {
1812
1793
buffer. write_str ( "::<wbr>" ) ;
0 commit comments