@@ -1654,7 +1654,7 @@ fn print_sidebar(cx: &Context<'_>, it: &clean::Item, buffer: &mut Buffer) {
1654
1654
{
1655
1655
write!(
1656
1656
buffer,
1657
- "<p class=\"location\">{}{}</p >",
1657
+ "<h2 class=\"location\">{}{}</h2 >",
1658
1658
match *it.kind {
1659
1659
clean::StructItem(..) => "Struct ",
1660
1660
clean::TraitItem(..) => "Trait ",
@@ -1718,7 +1718,7 @@ fn print_sidebar(cx: &Context<'_>, it: &clean::Item, buffer: &mut Buffer) {
1718
1718
// to navigate the documentation (though slightly inefficiently).
1719
1719
1720
1720
if !it.is_mod() {
1721
- buffer.write_str("<p class=\"location\">Other items in<br>");
1721
+ buffer.write_str("<h2 class=\"location\">Other items in<br>");
1722
1722
for (i, name) in cx.current.iter().take(parentlen).enumerate() {
1723
1723
if i > 0 {
1724
1724
buffer.write_str("::<wbr>");
@@ -1730,7 +1730,7 @@ fn print_sidebar(cx: &Context<'_>, it: &clean::Item, buffer: &mut Buffer) {
1730
1730
*name
1731
1731
);
1732
1732
}
1733
- buffer.write_str("</p >");
1733
+ buffer.write_str("</h2 >");
1734
1734
}
1735
1735
1736
1736
// Sidebar refers to the enclosing module, not this module.
@@ -1841,7 +1841,7 @@ fn sidebar_assoc_items(cx: &Context<'_>, out: &mut Buffer, it: &clean::Item) {
1841
1841
ret.sort();
1842
1842
1843
1843
out.push_str(
1844
- "<a class=\"sidebar-title\" href=\"#implementations\">Methods</a>\
1844
+ "<h3 class=\"sidebar-title\"><a href=\"#implementations\">Methods</a></h3 >\
1845
1845
<div class=\"sidebar-links\">",
1846
1846
);
1847
1847
for line in ret {
@@ -1906,24 +1906,24 @@ fn sidebar_assoc_items(cx: &Context<'_>, out: &mut Buffer, it: &clean::Item) {
1906
1906
1907
1907
if !concrete_format.is_empty() {
1908
1908
out.push_str(
1909
- "<a class=\"sidebar-title\" href=\"#trait-implementations\">\
1910
- Trait Implementations</a>",
1909
+ "<h3 class=\"sidebar-title\"><a href=\"#trait-implementations\">\
1910
+ Trait Implementations</a></h3> ",
1911
1911
);
1912
1912
write_sidebar_links(out, concrete_format);
1913
1913
}
1914
1914
1915
1915
if !synthetic_format.is_empty() {
1916
1916
out.push_str(
1917
- "<a class=\"sidebar-title\" href=\"#synthetic-implementations\">\
1918
- Auto Trait Implementations</a>",
1917
+ "<h3 class=\"sidebar-title\"><a href=\"#synthetic-implementations\">\
1918
+ Auto Trait Implementations</a></h3> ",
1919
1919
);
1920
1920
write_sidebar_links(out, synthetic_format);
1921
1921
}
1922
1922
1923
1923
if !blanket_format.is_empty() {
1924
1924
out.push_str(
1925
- "<a class=\"sidebar-title\" href=\"#blanket-implementations\">\
1926
- Blanket Implementations</a>",
1925
+ "<h3 class=\"sidebar-title\"><a href=\"#blanket-implementations\">\
1926
+ Blanket Implementations</a></h3> ",
1927
1927
);
1928
1928
write_sidebar_links(out, blanket_format);
1929
1929
}
@@ -1975,7 +1975,7 @@ fn sidebar_deref_methods(cx: &Context<'_>, out: &mut Buffer, impl_: &Impl, v: &V
1975
1975
if !ret.is_empty() {
1976
1976
write!(
1977
1977
out,
1978
- "<a class=\"sidebar-title\" href=\"#deref-methods\">Methods from {}<Target={}></a>",
1978
+ "<h3 class=\"sidebar-title\"><a href=\"#deref-methods\">Methods from {}<Target={}></a></h3 >",
1979
1979
Escape(&format!("{:#}", impl_.inner_impl().trait_.as_ref().unwrap().print(cx))),
1980
1980
Escape(&format!("{:#}", real_target.print(cx))),
1981
1981
);
@@ -1998,7 +1998,7 @@ fn sidebar_struct(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, s: &clea
1998
1998
if !fields.is_empty() {
1999
1999
if let CtorKind::Fictive = s.struct_type {
2000
2000
sidebar.push_str(
2001
- "<a class=\"sidebar-title\" href=\"#fields\">Fields</a>\
2001
+ "<h3 class=\"sidebar-title\"><a href=\"#fields\">Fields</a></h3 >\
2002
2002
<div class=\"sidebar-links\">",
2003
2003
);
2004
2004
@@ -2075,8 +2075,8 @@ fn sidebar_trait(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, t: &clean
2075
2075
print_sidebar_section(
2076
2076
buf,
2077
2077
&t.items,
2078
- "<a class=\"sidebar-title\" href=\"#associated-types\">\
2079
- Associated Types</a><div class=\"sidebar-links\">",
2078
+ "<h3 class=\"sidebar-title\"><a href=\"#associated-types\">\
2079
+ Associated Types</a></h3>< div class=\"sidebar-links\">",
2080
2080
|m| m.is_associated_type(),
2081
2081
|out, sym| write!(out, "<a href=\"#associatedtype.{0}\">{0}</a>", sym),
2082
2082
"</div>",
@@ -2085,8 +2085,8 @@ fn sidebar_trait(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, t: &clean
2085
2085
print_sidebar_section(
2086
2086
buf,
2087
2087
&t.items,
2088
- "<a class=\"sidebar-title\" href=\"#associated-const\">\
2089
- Associated Constants</a><div class=\"sidebar-links\">",
2088
+ "<h3 class=\"sidebar-title\"><a href=\"#associated-const\">\
2089
+ Associated Constants</a></h3>< div class=\"sidebar-links\">",
2090
2090
|m| m.is_associated_const(),
2091
2091
|out, sym| write!(out, "<a href=\"#associatedconstant.{0}\">{0}</a>", sym),
2092
2092
"</div>",
@@ -2095,8 +2095,8 @@ fn sidebar_trait(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, t: &clean
2095
2095
print_sidebar_section(
2096
2096
buf,
2097
2097
&t.items,
2098
- "<a class=\"sidebar-title\" href=\"#required-methods\">\
2099
- Required Methods</a><div class=\"sidebar-links\">",
2098
+ "<h3 class=\"sidebar-title\"><a href=\"#required-methods\">\
2099
+ Required Methods</a></h3>< div class=\"sidebar-links\">",
2100
2100
|m| m.is_ty_method(),
2101
2101
|out, sym| write!(out, "<a href=\"#tymethod.{0}\">{0}</a>", sym),
2102
2102
"</div>",
@@ -2105,8 +2105,8 @@ fn sidebar_trait(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, t: &clean
2105
2105
print_sidebar_section(
2106
2106
buf,
2107
2107
&t.items,
2108
- "<a class=\"sidebar-title\" href=\"#provided-methods\">\
2109
- Provided Methods</a><div class=\"sidebar-links\">",
2108
+ "<h3 class=\"sidebar-title\"><a href=\"#provided-methods\">\
2109
+ Provided Methods</a></h3>< div class=\"sidebar-links\">",
2110
2110
|m| m.is_method(),
2111
2111
|out, sym| write!(out, "<a href=\"#method.{0}\">{0}</a>", sym),
2112
2112
"</div>",
@@ -2128,8 +2128,8 @@ fn sidebar_trait(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, t: &clean
2128
2128
if !res.is_empty() {
2129
2129
res.sort();
2130
2130
buf.push_str(
2131
- "<a class=\"sidebar-title\" href=\"#foreign-impls\">\
2132
- Implementations on Foreign Types</a>\
2131
+ "<h3 class=\"sidebar-title\"><a href=\"#foreign-impls\">\
2132
+ Implementations on Foreign Types</a></h3> \
2133
2133
<div class=\"sidebar-links\">",
2134
2134
);
2135
2135
for (name, id) in res.into_iter() {
@@ -2141,11 +2141,11 @@ fn sidebar_trait(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, t: &clean
2141
2141
2142
2142
sidebar_assoc_items(cx, buf, it);
2143
2143
2144
- buf.push_str("<a class=\"sidebar-title\" href=\"#implementors\">Implementors</a>");
2144
+ buf.push_str("<h3 class=\"sidebar-title\"><a href=\"#implementors\">Implementors</a></h3 >");
2145
2145
if t.is_auto {
2146
2146
buf.push_str(
2147
- "<a class=\"sidebar-title\" \
2148
- href=\"#synthetic-implementors\">Auto Implementors</a>",
2147
+ "<h3 class=\"sidebar-title\"><a \
2148
+ href=\"#synthetic-implementors\">Auto Implementors</a></h3> ",
2149
2149
);
2150
2150
}
2151
2151
@@ -2188,7 +2188,7 @@ fn sidebar_union(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, u: &clean
2188
2188
2189
2189
if !fields.is_empty() {
2190
2190
sidebar.push_str(
2191
- "<a class=\"sidebar-title\" href=\"#fields\">Fields</a>\
2191
+ "<h3 class=\"sidebar-title\"><a href=\"#fields\">Fields</a></h3 >\
2192
2192
<div class=\"sidebar-links\">",
2193
2193
);
2194
2194
@@ -2220,7 +2220,7 @@ fn sidebar_enum(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, e: &clean:
2220
2220
if !variants.is_empty() {
2221
2221
variants.sort_unstable();
2222
2222
sidebar.push_str(&format!(
2223
- "<a class=\"sidebar-title\" href=\"#variants\">Variants</a>\
2223
+ "<h3 class=\"sidebar-title\"><a href=\"#variants\">Variants</a></h3 >\
2224
2224
<div class=\"sidebar-links\">{}</div>",
2225
2225
variants.join(""),
2226
2226
));
0 commit comments