Update version attribute for 1.74 lints

This commit is contained in:
xFrednet 2023-11-14 18:04:48 +01:00
parent 0c42e451d6
commit 9401cf21e4
No known key found for this signature in database
GPG Key ID: F5C59D0E669E5302
6 changed files with 6 additions and 6 deletions

View File

@ -371,7 +371,7 @@
/// let _ = 1 / random();
/// }
/// ```
#[clippy::version = "1.73.0"]
#[clippy::version = "1.74.0"]
pub SHOULD_PANIC_WITHOUT_EXPECT,
pedantic,
"ensures that all `should_panic` attributes specify its expected panic message"

View File

@ -43,7 +43,7 @@
/// Box::new(123)
/// }
/// ```
#[clippy::version = "1.73.0"]
#[clippy::version = "1.74.0"]
pub IMPLIED_BOUNDS_IN_IMPLS,
nursery,
"specifying bounds that are implied by other bounds in `impl Trait` type"

View File

@ -57,7 +57,7 @@
/// v[0] + v[1] + v[2] + v[3]
/// }
/// ```
#[clippy::version = "1.70.0"]
#[clippy::version = "1.74.0"]
pub MISSING_ASSERTS_FOR_INDEXING,
restriction,
"indexing into a slice multiple times without an `assert`"

View File

@ -50,7 +50,7 @@
/// let x = "foo";
/// f(x);
/// ```
#[clippy::version = "pre 1.29.0"]
#[clippy::version = "1.74.0"]
pub NEEDLESS_BORROWS_FOR_GENERIC_ARGS,
style,
"taking a reference that is going to be automatically dereferenced"

View File

@ -26,7 +26,7 @@
/// ```no_run
/// let mut v: Vec<usize> = Vec::with_capacity(10);
/// ```
#[clippy::version = "1.73.0"]
#[clippy::version = "1.74.0"]
pub RESERVE_AFTER_INITIALIZATION,
complexity,
"`reserve` called immediately after `Vec` creation"

View File

@ -23,7 +23,7 @@
/// ```no_run
/// Some(i32::swap_bytes(4));
/// ```
#[clippy::version = "1.73.0"]
#[clippy::version = "1.74.0"]
pub UNNECESSARY_MAP_ON_CONSTRUCTOR,
complexity,
"using `map`/`map_err` on `Option` or `Result` constructors"