Skip to content

Commit fd9ab34

Browse files
committed
rustdoc: clean up sidebar.html block class
This line is longer than 100 characters, but apparently, [tidy's list of checked extensions] doesn't include html, so the line length doesn't matter. [tidy's list of checked extensions]: https://github.com/rust-lang/rust/blob/31be8cc41148983e742fea8f559aacca0f6647db/src/tools/tidy/src/style.rs#L245
1 parent d8afa67 commit fd9ab34

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/librustdoc/html/templates/sidebar.html

+1-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ <h2 class="location"> {# #}
1818
<h3><a href="#{{block.heading.href|safe}}">{{block.heading.name}}</a></h3>
1919
{% endif %}
2020
{% if !block.links.is_empty() %}
21-
<ul {%+ if block.class.is_empty() %}
22-
class="block"
23-
{% else %}
24-
class="block {{+ block.class}}"
25-
{% endif %}>
21+
<ul class="block{% if !block.class.is_empty() +%} {{+block.class}}{% endif %}">
2622
{% for link in block.links %}
2723
<li><a href="#{{link.href|safe}}">{{link.name}}</a></li>
2824
{% endfor %}

0 commit comments

Comments
 (0)