Skip to content

Commit 9401cf2

Browse files
committed
Update version attribute for 1.74 lints
1 parent 0c42e45 commit 9401cf2

6 files changed

+6
-6
lines changed

clippy_lints/src/attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ declare_clippy_lint! {
371371
/// let _ = 1 / random();
372372
/// }
373373
/// ```
374-
#[clippy::version = "1.73.0"]
374+
#[clippy::version = "1.74.0"]
375375
pub SHOULD_PANIC_WITHOUT_EXPECT,
376376
pedantic,
377377
"ensures that all `should_panic` attributes specify its expected panic message"

clippy_lints/src/implied_bounds_in_impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ declare_clippy_lint! {
4343
/// Box::new(123)
4444
/// }
4545
/// ```
46-
#[clippy::version = "1.73.0"]
46+
#[clippy::version = "1.74.0"]
4747
pub IMPLIED_BOUNDS_IN_IMPLS,
4848
nursery,
4949
"specifying bounds that are implied by other bounds in `impl Trait` type"

clippy_lints/src/missing_asserts_for_indexing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ declare_clippy_lint! {
5757
/// v[0] + v[1] + v[2] + v[3]
5858
/// }
5959
/// ```
60-
#[clippy::version = "1.70.0"]
60+
#[clippy::version = "1.74.0"]
6161
pub MISSING_ASSERTS_FOR_INDEXING,
6262
restriction,
6363
"indexing into a slice multiple times without an `assert`"

clippy_lints/src/needless_borrows_for_generic_args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ declare_clippy_lint! {
5050
/// let x = "foo";
5151
/// f(x);
5252
/// ```
53-
#[clippy::version = "pre 1.29.0"]
53+
#[clippy::version = "1.74.0"]
5454
pub NEEDLESS_BORROWS_FOR_GENERIC_ARGS,
5555
style,
5656
"taking a reference that is going to be automatically dereferenced"

clippy_lints/src/reserve_after_initialization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare_clippy_lint! {
2626
/// ```no_run
2727
/// let mut v: Vec<usize> = Vec::with_capacity(10);
2828
/// ```
29-
#[clippy::version = "1.73.0"]
29+
#[clippy::version = "1.74.0"]
3030
pub RESERVE_AFTER_INITIALIZATION,
3131
complexity,
3232
"`reserve` called immediately after `Vec` creation"

clippy_lints/src/unnecessary_map_on_constructor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ declare_clippy_lint! {
2323
/// ```no_run
2424
/// Some(i32::swap_bytes(4));
2525
/// ```
26-
#[clippy::version = "1.73.0"]
26+
#[clippy::version = "1.74.0"]
2727
pub UNNECESSARY_MAP_ON_CONSTRUCTOR,
2828
complexity,
2929
"using `map`/`map_err` on `Option` or `Result` constructors"

0 commit comments

Comments
 (0)