Skip to content

Commit b86a489

Browse files
committed
Fix link to source
The URLs contained an extra `clippy_lints`, which resulted in broken links. Links are generated using each lint's `id_location`, which already contains the full path inside the repository.
1 parent ddda954 commit b86a489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/gh-pages/index_template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ <h2 class="panel-title"> {# #}
186186
{# Jump to source #}
187187
{% if let Some(id_location) = lint.id_location %}
188188
<div class="lint-additional-info-item"> {# #}
189-
<a href="https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/{{id_location}}">View Source</a> {# #}
189+
<a href="https://github.com/rust-lang/rust-clippy/blob/master/{{id_location}}">View Source</a> {# #}
190190
</div>
191191
{% endif %}
192192
</div> {# #}

0 commit comments

Comments
 (0)