From e16a2ac0c65c233ab52f61cdb38ad76ea53b11f4 Mon Sep 17 00:00:00 2001 From: Morten Lohne Date: Mon, 29 May 2023 23:49:54 +0200 Subject: [PATCH] Add descriptions for 'impossible_double_const_comparisons' and 'ineffective_double_const_comparisons' --- clippy_lints/src/operators/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/operators/mod.rs b/clippy_lints/src/operators/mod.rs index 41efcef86c8a..25e1fce1980b 100644 --- a/clippy_lints/src/operators/mod.rs +++ b/clippy_lints/src/operators/mod.rs @@ -314,7 +314,7 @@ declare_clippy_lint! { #[clippy::version = "1.71.0"] pub IMPOSSIBLE_DOUBLE_CONST_COMPARISONS, correctness, - "default lint description" + "double comparisons that will never evaluate to `true`" } declare_clippy_lint! { @@ -333,7 +333,7 @@ declare_clippy_lint! { #[clippy::version = "1.71.0"] pub INEFFECTIVE_DOUBLE_CONST_COMPARISONS, correctness, - "default lint description" + "double comparisons where one of them can be removed" } declare_clippy_lint! {