@@ -1690,7 +1690,7 @@ fn print_sidebar(cx: &Context<'_>, it: &clean::Item, buffer: &mut Buffer) {
1690
1690
{
1691
1691
write ! (
1692
1692
buffer,
1693
- "<p class=\" location\" >{}{}</p >" ,
1693
+ "<h2 class=\" location\" >{}{}</h2 >" ,
1694
1694
match * it. kind {
1695
1695
clean:: StructItem ( ..) => "Struct " ,
1696
1696
clean:: TraitItem ( ..) => "Trait " ,
@@ -1753,7 +1753,7 @@ fn print_sidebar(cx: &Context<'_>, it: &clean::Item, buffer: &mut Buffer) {
1753
1753
// to navigate the documentation (though slightly inefficiently).
1754
1754
1755
1755
if !it. is_mod ( ) {
1756
- buffer. write_str ( "<p class=\" location\" >Other items in<br>" ) ;
1756
+ buffer. write_str ( "<h2 class=\" location\" >Other items in<br>" ) ;
1757
1757
for ( i, name) in cx. current . iter ( ) . take ( parentlen) . enumerate ( ) {
1758
1758
if i > 0 {
1759
1759
buffer. write_str ( "::<wbr>" ) ;
@@ -1765,7 +1765,7 @@ fn print_sidebar(cx: &Context<'_>, it: &clean::Item, buffer: &mut Buffer) {
1765
1765
* name
1766
1766
) ;
1767
1767
}
1768
- buffer. write_str ( "</p >" ) ;
1768
+ buffer. write_str ( "</h2 >" ) ;
1769
1769
}
1770
1770
1771
1771
// Sidebar refers to the enclosing module, not this module.
@@ -1876,7 +1876,7 @@ fn sidebar_assoc_items(cx: &Context<'_>, out: &mut Buffer, it: &clean::Item) {
1876
1876
ret. sort ( ) ;
1877
1877
1878
1878
out. push_str (
1879
- "<a class=\" sidebar-title\" href=\" #implementations\" >Methods</a>\
1879
+ "<h3 class=\" sidebar-title\" ><a href=\" #implementations\" >Methods</a></h3 >\
1880
1880
<div class=\" sidebar-links\" >",
1881
1881
) ;
1882
1882
for line in ret {
@@ -1941,24 +1941,24 @@ fn sidebar_assoc_items(cx: &Context<'_>, out: &mut Buffer, it: &clean::Item) {
1941
1941
1942
1942
if !concrete_format. is_empty ( ) {
1943
1943
out. push_str (
1944
- "<a class=\" sidebar-title\" href=\" #trait-implementations\" >\
1945
- Trait Implementations</a>",
1944
+ "<h3 class=\" sidebar-title\" ><a href=\" #trait-implementations\" >\
1945
+ Trait Implementations</a></h3> ",
1946
1946
) ;
1947
1947
write_sidebar_links ( out, concrete_format) ;
1948
1948
}
1949
1949
1950
1950
if !synthetic_format. is_empty ( ) {
1951
1951
out. push_str (
1952
- "<a class=\" sidebar-title\" href=\" #synthetic-implementations\" >\
1953
- Auto Trait Implementations</a>",
1952
+ "<h3 class=\" sidebar-title\" ><a href=\" #synthetic-implementations\" >\
1953
+ Auto Trait Implementations</a></h3> ",
1954
1954
) ;
1955
1955
write_sidebar_links ( out, synthetic_format) ;
1956
1956
}
1957
1957
1958
1958
if !blanket_format. is_empty ( ) {
1959
1959
out. push_str (
1960
- "<a class=\" sidebar-title\" href=\" #blanket-implementations\" >\
1961
- Blanket Implementations</a>",
1960
+ "<h3 class=\" sidebar-title\" ><a href=\" #blanket-implementations\" >\
1961
+ Blanket Implementations</a></h3> ",
1962
1962
) ;
1963
1963
write_sidebar_links ( out, blanket_format) ;
1964
1964
}
@@ -2010,7 +2010,7 @@ fn sidebar_deref_methods(cx: &Context<'_>, out: &mut Buffer, impl_: &Impl, v: &V
2010
2010
if !ret. is_empty ( ) {
2011
2011
write ! (
2012
2012
out,
2013
- "<a class=\" sidebar-title\" href=\" #deref-methods\" >Methods from {}<Target={}></a>" ,
2013
+ "<h3 class=\" sidebar-title\" ><a href=\" #deref-methods\" >Methods from {}<Target={}></a></h3 >" ,
2014
2014
Escape ( & format!( "{:#}" , impl_. inner_impl( ) . trait_. as_ref( ) . unwrap( ) . print( cx) ) ) ,
2015
2015
Escape ( & format!( "{:#}" , real_target. print( cx) ) ) ,
2016
2016
) ;
@@ -2046,7 +2046,7 @@ fn sidebar_struct(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, s: &clea
2046
2046
if !fields. is_empty ( ) {
2047
2047
if let CtorKind :: Fictive = s. struct_type {
2048
2048
sidebar. push_str (
2049
- "<a class=\" sidebar-title\" href=\" #fields\" >Fields</a>\
2049
+ "<h3 class=\" sidebar-title\" ><a href=\" #fields\" >Fields</a></h3 >\
2050
2050
<div class=\" sidebar-links\" >",
2051
2051
) ;
2052
2052
@@ -2123,8 +2123,8 @@ fn sidebar_trait(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, t: &clean
2123
2123
print_sidebar_section (
2124
2124
buf,
2125
2125
& t. items ,
2126
- "<a class=\" sidebar-title\" href=\" #associated-types\" >\
2127
- Associated Types</a><div class=\" sidebar-links\" >",
2126
+ "<h3 class=\" sidebar-title\" ><a href=\" #associated-types\" >\
2127
+ Associated Types</a></h3>< div class=\" sidebar-links\" >",
2128
2128
|m| m. is_associated_type ( ) ,
2129
2129
|out, sym| write ! ( out, "<a href=\" #associatedtype.{0}\" >{0}</a>" , sym) ,
2130
2130
"</div>" ,
@@ -2133,8 +2133,8 @@ fn sidebar_trait(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, t: &clean
2133
2133
print_sidebar_section (
2134
2134
buf,
2135
2135
& t. items ,
2136
- "<a class=\" sidebar-title\" href=\" #associated-const\" >\
2137
- Associated Constants</a><div class=\" sidebar-links\" >",
2136
+ "<h3 class=\" sidebar-title\" ><a href=\" #associated-const\" >\
2137
+ Associated Constants</a></h3>< div class=\" sidebar-links\" >",
2138
2138
|m| m. is_associated_const ( ) ,
2139
2139
|out, sym| write ! ( out, "<a href=\" #associatedconstant.{0}\" >{0}</a>" , sym) ,
2140
2140
"</div>" ,
@@ -2143,8 +2143,8 @@ fn sidebar_trait(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, t: &clean
2143
2143
print_sidebar_section (
2144
2144
buf,
2145
2145
& t. items ,
2146
- "<a class=\" sidebar-title\" href=\" #required-methods\" >\
2147
- Required Methods</a><div class=\" sidebar-links\" >",
2146
+ "<h3 class=\" sidebar-title\" ><a href=\" #required-methods\" >\
2147
+ Required Methods</a></h3>< div class=\" sidebar-links\" >",
2148
2148
|m| m. is_ty_method ( ) ,
2149
2149
|out, sym| write ! ( out, "<a href=\" #tymethod.{0}\" >{0}</a>" , sym) ,
2150
2150
"</div>" ,
@@ -2153,8 +2153,8 @@ fn sidebar_trait(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, t: &clean
2153
2153
print_sidebar_section (
2154
2154
buf,
2155
2155
& t. items ,
2156
- "<a class=\" sidebar-title\" href=\" #provided-methods\" >\
2157
- Provided Methods</a><div class=\" sidebar-links\" >",
2156
+ "<h3 class=\" sidebar-title\" ><a href=\" #provided-methods\" >\
2157
+ Provided Methods</a></h3>< div class=\" sidebar-links\" >",
2158
2158
|m| m. is_method ( ) ,
2159
2159
|out, sym| write ! ( out, "<a href=\" #method.{0}\" >{0}</a>" , sym) ,
2160
2160
"</div>" ,
@@ -2176,8 +2176,8 @@ fn sidebar_trait(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, t: &clean
2176
2176
if !res. is_empty ( ) {
2177
2177
res. sort ( ) ;
2178
2178
buf. push_str (
2179
- "<a class=\" sidebar-title\" href=\" #foreign-impls\" >\
2180
- Implementations on Foreign Types</a>\
2179
+ "<h3 class=\" sidebar-title\" ><a href=\" #foreign-impls\" >\
2180
+ Implementations on Foreign Types</a></h3> \
2181
2181
<div class=\" sidebar-links\" >",
2182
2182
) ;
2183
2183
for ( name, id) in res. into_iter ( ) {
@@ -2189,11 +2189,11 @@ fn sidebar_trait(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, t: &clean
2189
2189
2190
2190
sidebar_assoc_items ( cx, buf, it) ;
2191
2191
2192
- buf. push_str ( "<a class=\" sidebar-title\" href=\" #implementors\" >Implementors</a>" ) ;
2192
+ buf. push_str ( "<h3 class=\" sidebar-title\" ><a href=\" #implementors\" >Implementors</a></h3 >" ) ;
2193
2193
if t. is_auto {
2194
2194
buf. push_str (
2195
- "<a class=\" sidebar-title\" \
2196
- href=\" #synthetic-implementors\" >Auto Implementors</a>",
2195
+ "<h3 class=\" sidebar-title\" ><a \
2196
+ href=\" #synthetic-implementors\" >Auto Implementors</a></h3> ",
2197
2197
) ;
2198
2198
}
2199
2199
@@ -2236,7 +2236,7 @@ fn sidebar_union(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, u: &clean
2236
2236
2237
2237
if !fields. is_empty ( ) {
2238
2238
sidebar. push_str (
2239
- "<a class=\" sidebar-title\" href=\" #fields\" >Fields</a>\
2239
+ "<h3 class=\" sidebar-title\" ><a href=\" #fields\" >Fields</a></h3 >\
2240
2240
<div class=\" sidebar-links\" >",
2241
2241
) ;
2242
2242
@@ -2268,7 +2268,7 @@ fn sidebar_enum(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, e: &clean:
2268
2268
if !variants. is_empty ( ) {
2269
2269
variants. sort_unstable ( ) ;
2270
2270
sidebar. push_str ( & format ! (
2271
- "<a class=\" sidebar-title\" href=\" #variants\" >Variants</a>\
2271
+ "<h3 class=\" sidebar-title\" ><a href=\" #variants\" >Variants</a></h3 >\
2272
2272
<div class=\" sidebar-links\" >{}</div>",
2273
2273
variants. join( "" ) ,
2274
2274
) ) ;
0 commit comments