Update version attribute for 1.72 lints

This commit is contained in:
xFrednet 2023-08-18 17:07:43 +02:00
parent 1698ce0ba1
commit 41570c1ee7
No known key found for this signature in database
GPG Key ID: F5C59D0E669E5302
7 changed files with 10 additions and 10 deletions

View File

@ -418,7 +418,7 @@
/// let mut_ptr = ptr.cast_mut();
/// let ptr = mut_ptr.cast_const();
/// ```
#[clippy::version = "1.71.0"]
#[clippy::version = "1.72.0"]
pub PTR_CAST_CONSTNESS,
pedantic,
"casting using `as` from and to raw pointers to change constness when specialized methods apply"

View File

@ -21,7 +21,7 @@
/// let _x = 2i32.to_ne_bytes();
/// let _y = 2i64.to_ne_bytes();
/// ```
#[clippy::version = "1.71.0"]
#[clippy::version = "1.72.0"]
pub HOST_ENDIAN_BYTES,
restriction,
"disallows usage of the `to_ne_bytes` method"
@ -40,7 +40,7 @@
/// let _x = 2i32.to_le_bytes();
/// let _y = 2i64.to_le_bytes();
/// ```
#[clippy::version = "1.71.0"]
#[clippy::version = "1.72.0"]
pub LITTLE_ENDIAN_BYTES,
restriction,
"disallows usage of the `to_le_bytes` method"
@ -59,7 +59,7 @@
/// let _x = 2i32.to_be_bytes();
/// let _y = 2i64.to_be_bytes();
/// ```
#[clippy::version = "1.71.0"]
#[clippy::version = "1.72.0"]
pub BIG_ENDIAN_BYTES,
restriction,
"disallows usage of the `to_be_bytes` method"

View File

@ -56,7 +56,7 @@
/// // lib.rs
/// pub mod a;
/// ```
#[clippy::version = "1.70.0"]
#[clippy::version = "1.72.0"]
pub EXCESSIVE_NESTING,
complexity,
"checks for blocks nested beyond a certain threshold"

View File

@ -72,7 +72,7 @@
/// // ...
/// }
/// ```
#[clippy::version = "1.71.0"]
#[clippy::version = "1.72.0"]
pub LARGE_STACK_FRAMES,
nursery,
"checks for functions that allocate a lot of stack space"

View File

@ -301,7 +301,7 @@
/// let val2 = 1;
/// let val3 = 1;
/// ```
#[clippy::version = "1.69.0"]
#[clippy::version = "1.72.0"]
pub UNNECESSARY_LITERAL_UNWRAP,
complexity,
"using `unwrap()` related calls on `Result` and `Option` constructors"
@ -3328,7 +3328,7 @@
/// mem::take(v)
/// }
/// ```
#[clippy::version = "1.71.0"]
#[clippy::version = "1.72.0"]
pub DRAIN_COLLECT,
perf,
"calling `.drain(..).collect()` to move all elements into a new collection"

View File

@ -27,7 +27,7 @@
/// println!("Check successful!");
/// }
/// ```
#[clippy::version = "1.71.0"]
#[clippy::version = "1.72.0"]
pub NEEDLESS_ELSE,
style,
"empty else branch"

View File

@ -31,7 +31,7 @@
/// ```rust
/// let foo = String::new();
/// ```
#[clippy::version = "1.70.0"]
#[clippy::version = "1.72.0"]
pub REDUNDANT_TYPE_ANNOTATIONS,
restriction,
"warns about needless / redundant type annotations."