Skip to content

Commit 41570c1

Browse files
committed
Update version attribute for 1.72 lints
1 parent 1698ce0 commit 41570c1

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

clippy_lints/src/casts/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ declare_clippy_lint! {
418418
/// let mut_ptr = ptr.cast_mut();
419419
/// let ptr = mut_ptr.cast_const();
420420
/// ```
421-
#[clippy::version = "1.71.0"]
421+
#[clippy::version = "1.72.0"]
422422
pub PTR_CAST_CONSTNESS,
423423
pedantic,
424424
"casting using `as` from and to raw pointers to change constness when specialized methods apply"

clippy_lints/src/endian_bytes.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ declare_clippy_lint! {
2121
/// let _x = 2i32.to_ne_bytes();
2222
/// let _y = 2i64.to_ne_bytes();
2323
/// ```
24-
#[clippy::version = "1.71.0"]
24+
#[clippy::version = "1.72.0"]
2525
pub HOST_ENDIAN_BYTES,
2626
restriction,
2727
"disallows usage of the `to_ne_bytes` method"
@@ -40,7 +40,7 @@ declare_clippy_lint! {
4040
/// let _x = 2i32.to_le_bytes();
4141
/// let _y = 2i64.to_le_bytes();
4242
/// ```
43-
#[clippy::version = "1.71.0"]
43+
#[clippy::version = "1.72.0"]
4444
pub LITTLE_ENDIAN_BYTES,
4545
restriction,
4646
"disallows usage of the `to_le_bytes` method"
@@ -59,7 +59,7 @@ declare_clippy_lint! {
5959
/// let _x = 2i32.to_be_bytes();
6060
/// let _y = 2i64.to_be_bytes();
6161
/// ```
62-
#[clippy::version = "1.71.0"]
62+
#[clippy::version = "1.72.0"]
6363
pub BIG_ENDIAN_BYTES,
6464
restriction,
6565
"disallows usage of the `to_be_bytes` method"

clippy_lints/src/excessive_nesting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ declare_clippy_lint! {
5656
/// // lib.rs
5757
/// pub mod a;
5858
/// ```
59-
#[clippy::version = "1.70.0"]
59+
#[clippy::version = "1.72.0"]
6060
pub EXCESSIVE_NESTING,
6161
complexity,
6262
"checks for blocks nested beyond a certain threshold"

clippy_lints/src/large_stack_frames.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ declare_clippy_lint! {
7272
/// // ...
7373
/// }
7474
/// ```
75-
#[clippy::version = "1.71.0"]
75+
#[clippy::version = "1.72.0"]
7676
pub LARGE_STACK_FRAMES,
7777
nursery,
7878
"checks for functions that allocate a lot of stack space"

clippy_lints/src/methods/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ declare_clippy_lint! {
301301
/// let val2 = 1;
302302
/// let val3 = 1;
303303
/// ```
304-
#[clippy::version = "1.69.0"]
304+
#[clippy::version = "1.72.0"]
305305
pub UNNECESSARY_LITERAL_UNWRAP,
306306
complexity,
307307
"using `unwrap()` related calls on `Result` and `Option` constructors"
@@ -3328,7 +3328,7 @@ declare_clippy_lint! {
33283328
/// mem::take(v)
33293329
/// }
33303330
/// ```
3331-
#[clippy::version = "1.71.0"]
3331+
#[clippy::version = "1.72.0"]
33323332
pub DRAIN_COLLECT,
33333333
perf,
33343334
"calling `.drain(..).collect()` to move all elements into a new collection"

clippy_lints/src/needless_else.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ declare_clippy_lint! {
2727
/// println!("Check successful!");
2828
/// }
2929
/// ```
30-
#[clippy::version = "1.71.0"]
30+
#[clippy::version = "1.72.0"]
3131
pub NEEDLESS_ELSE,
3232
style,
3333
"empty else branch"

clippy_lints/src/redundant_type_annotations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ declare_clippy_lint! {
3131
/// ```rust
3232
/// let foo = String::new();
3333
/// ```
34-
#[clippy::version = "1.70.0"]
34+
#[clippy::version = "1.72.0"]
3535
pub REDUNDANT_TYPE_ANNOTATIONS,
3636
restriction,
3737
"warns about needless / redundant type annotations."

0 commit comments

Comments
 (0)