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.
This commit is contained in:
Anastasis Georgoulas 2024-10-15 22:42:03 +01:00
parent ddda954e37
commit b86a48955e

View file

@ -186,7 +186,7 @@ Otherwise, have a great day =^.^=
{# Jump to source #}
{% if let Some(id_location) = lint.id_location %}
<div class="lint-additional-info-item"> {# #}
<a href="https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/{{id_location}}">View Source</a> {# #}
<a href="https://github.com/rust-lang/rust-clippy/blob/master/{{id_location}}">View Source</a> {# #}
</div>
{% endif %}
</div> {# #}