Skip to content

Commit 729a5d8

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 1e24356 commit 729a5d8

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
@@ -21,11 +21,7 @@ <h2 class="location"> {# #}
2121
<h3><a href="#{{block.heading.href|safe}}">{{block.heading.name}}</a></h3>
2222
{% endif %}
2323
{% if !block.links.is_empty() %}
24-
<ul {%+ if block.class.is_empty() %}
25-
class="block"
26-
{% else %}
27-
class="block {{+ block.class}}"
28-
{% endif %}>
24+
<ul class="block{% if !block.class.is_empty() +%} {{+block.class}}{% endif %}">
2925
{% for link in block.links %}
3026
<li><a href="#{{link.href|safe}}">{{link.name}}</a></li>
3127
{% endfor %}

0 commit comments

Comments
 (0)