We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e16a2ac commit 08e1333Copy full SHA for 08e1333
clippy_lints/src/operators/mod.rs
@@ -309,7 +309,8 @@ declare_clippy_lint! {
309
///
310
/// ### Example
311
/// ```rust
312
- /// status_code <= 400 && status_code > 500;
+ /// # let status_code = 200;
313
+ /// if status_code <= 400 && status_code > 500 {}
314
/// ```
315
#[clippy::version = "1.71.0"]
316
pub IMPOSSIBLE_DOUBLE_CONST_COMPARISONS,
@@ -328,7 +329,8 @@ declare_clippy_lint! {
328
329
330
331
- /// status_code <= 400 && status_code < 500;
332
333
+ /// if status_code <= 400 && status_code < 500 {}
334
335
336
pub INEFFECTIVE_DOUBLE_CONST_COMPARISONS,
0 commit comments