Update version attribute for 1.81 lints

This commit is contained in:
xFrednet 2024-08-29 21:31:46 +02:00
parent b86a202c92
commit 9e7473f08d
No known key found for this signature in database
GPG key ID: E126C23F63C8907A
7 changed files with 8 additions and 8 deletions

View file

@ -22,7 +22,7 @@ declare_clippy_lint! {
/// ```ignore /// ```ignore
/// b"Hello" /// b"Hello"
/// ``` /// ```
#[clippy::version = "1.68.0"] #[clippy::version = "1.81.0"]
pub BYTE_CHAR_SLICES, pub BYTE_CHAR_SLICES,
style, style,
"hard to read byte char slice" "hard to read byte char slice"

View file

@ -22,7 +22,7 @@ declare_clippy_lint! {
/// # fn important_check() {} /// # fn important_check() {}
/// important_check(); /// important_check();
/// ``` /// ```
#[clippy::version = "1.73.0"] #[clippy::version = "1.81.0"]
pub CFG_NOT_TEST, pub CFG_NOT_TEST,
restriction, restriction,
"enforce against excluding code from test builds" "enforce against excluding code from test builds"

View file

@ -41,7 +41,7 @@ declare_clippy_lint! {
/// } /// }
/// } /// }
/// ``` /// ```
#[clippy::version = "1.78.0"] #[clippy::version = "1.81.0"]
pub FIELD_SCOPED_VISIBILITY_MODIFIERS, pub FIELD_SCOPED_VISIBILITY_MODIFIERS,
restriction, restriction,
"checks for usage of a scoped visibility modifier, like `pub(crate)`, on fields" "checks for usage of a scoped visibility modifier, like `pub(crate)`, on fields"

View file

@ -3964,7 +3964,7 @@ declare_clippy_lint! {
/// ```no_run /// ```no_run
/// let _ = 0; /// let _ = 0;
/// ``` /// ```
#[clippy::version = "1.78.0"] #[clippy::version = "1.81.0"]
pub UNNECESSARY_MIN_OR_MAX, pub UNNECESSARY_MIN_OR_MAX,
complexity, complexity,
"using 'min()/max()' when there is no need for it" "using 'min()/max()' when there is no need for it"
@ -4099,7 +4099,7 @@ declare_clippy_lint! {
/// ```no_run /// ```no_run
/// "foo".is_ascii(); /// "foo".is_ascii();
/// ``` /// ```
#[clippy::version = "1.80.0"] #[clippy::version = "1.81.0"]
pub NEEDLESS_CHARACTER_ITERATION, pub NEEDLESS_CHARACTER_ITERATION,
suspicious, suspicious,
"is_ascii() called on a char iterator" "is_ascii() called on a char iterator"

View file

@ -26,7 +26,7 @@ declare_clippy_lint! {
/// ///
/// // or choose alternative bounds for `T` so that it can be unsized /// // or choose alternative bounds for `T` so that it can be unsized
/// ``` /// ```
#[clippy::version = "1.79.0"] #[clippy::version = "1.81.0"]
pub NEEDLESS_MAYBE_SIZED, pub NEEDLESS_MAYBE_SIZED,
suspicious, suspicious,
"a `?Sized` bound that is unusable due to a `Sized` requirement" "a `?Sized` bound that is unusable due to a `Sized` requirement"

View file

@ -42,7 +42,7 @@ declare_clippy_lint! {
/// println!("inserted {value:?}"); /// println!("inserted {value:?}");
/// } /// }
/// ``` /// ```
#[clippy::version = "1.80.0"] #[clippy::version = "1.81.0"]
pub SET_CONTAINS_OR_INSERT, pub SET_CONTAINS_OR_INSERT,
nursery, nursery,
"call to `<set>::contains` followed by `<set>::insert`" "call to `<set>::contains` followed by `<set>::insert`"

View file

@ -33,7 +33,7 @@ declare_clippy_lint! {
/// ```no_run /// ```no_run
/// "Hello World!".trim_end_matches(['.', ',', '!', '?']); /// "Hello World!".trim_end_matches(['.', ',', '!', '?']);
/// ``` /// ```
#[clippy::version = "1.80.0"] #[clippy::version = "1.81.0"]
pub MANUAL_PATTERN_CHAR_COMPARISON, pub MANUAL_PATTERN_CHAR_COMPARISON,
style, style,
"manual char comparison in string patterns" "manual char comparison in string patterns"