From b86a48955e43e269fdbda357ad543a35a2995eb6 Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Tue, 15 Oct 2024 22:42:03 +0100 Subject: [PATCH 1/2] 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. --- util/gh-pages/index_template.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/gh-pages/index_template.html b/util/gh-pages/index_template.html index 663ef1fbd31c..2412f0fd1813 100644 --- a/util/gh-pages/index_template.html +++ b/util/gh-pages/index_template.html @@ -186,7 +186,7 @@

{# #} {# Jump to source #} {% if let Some(id_location) = lint.id_location %}
{# #} - View Source {# #} + View Source {# #}
{% endif %} {# #} From 48636259dfac998c0f34980ef52bebb0ca92a798 Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Tue, 15 Oct 2024 22:47:04 +0100 Subject: [PATCH 2/2] Correct typo in lint description --- clippy_lints/src/methods/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 90f7128d0e8d..722290fb68e5 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -4046,7 +4046,7 @@ declare_clippy_lint! { /// Checks the usage of `.get().is_some()` or `.get().is_none()` on std map types. /// /// ### Why is this bad? - /// It can be done in one call with `.contains()`/`.contains_keys()`. + /// It can be done in one call with `.contains()`/`.contains_key()`. /// /// ### Example /// ```no_run