Update version attribute for 1.74 lints
This commit is contained in:
parent
0c42e451d6
commit
9401cf21e4
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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`"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user