File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ declare_clippy_lint! {
36
36
/// if vec.len() <= 0 {}
37
37
/// if 100 > i32::MAX {}
38
38
/// ```
39
+ #[ clippy:: version = "0.0.105" ]
39
40
pub ABSURD_EXTREME_COMPARISONS ,
40
41
correctness,
41
42
"a comparison with a maximum or minimum value that is always true or false"
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ declare_clippy_lint! {
33
33
/// let x = std::f32::consts::PI;
34
34
/// let y = std::f64::consts::FRAC_1_PI;
35
35
/// ```
36
+ #[ clippy:: version = "0.0.83" ]
36
37
pub APPROX_CONSTANT ,
37
38
correctness,
38
39
"the approximate of a known float constant (in `std::fXX::consts`)"
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ declare_clippy_lint! {
34
34
/// // Good
35
35
/// a += b;
36
36
/// ```
37
+ #[ clippy:: version = "0.0.83" ]
37
38
pub ASSIGN_OP_PATTERN ,
38
39
style,
39
40
"assigning the result of an operation on a variable to that same variable"
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ declare_clippy_lint! {
60
60
/// # let mut b = 2;
61
61
/// std::mem::swap(&mut a, &mut b);
62
62
/// ```
63
+ #[ clippy:: version = "0.0.83" ]
63
64
pub ALMOST_SWAPPED ,
64
65
correctness,
65
66
"`foo = bar; bar = foo` sequence"
You can’t perform that action at this time.
0 commit comments