Skip to content

Commit 9e7473f

Browse files
committed
Update version attribute for 1.81 lints
1 parent b86a202 commit 9e7473f

7 files changed

+8
-8
lines changed

clippy_lints/src/byte_char_slices.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare_clippy_lint! {
2222
/// ```ignore
2323
/// b"Hello"
2424
/// ```
25-
#[clippy::version = "1.68.0"]
25+
#[clippy::version = "1.81.0"]
2626
pub BYTE_CHAR_SLICES,
2727
style,
2828
"hard to read byte char slice"

clippy_lints/src/cfg_not_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare_clippy_lint! {
2222
/// # fn important_check() {}
2323
/// important_check();
2424
/// ```
25-
#[clippy::version = "1.73.0"]
25+
#[clippy::version = "1.81.0"]
2626
pub CFG_NOT_TEST,
2727
restriction,
2828
"enforce against excluding code from test builds"

clippy_lints/src/field_scoped_visibility_modifiers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ declare_clippy_lint! {
4141
/// }
4242
/// }
4343
/// ```
44-
#[clippy::version = "1.78.0"]
44+
#[clippy::version = "1.81.0"]
4545
pub FIELD_SCOPED_VISIBILITY_MODIFIERS,
4646
restriction,
4747
"checks for usage of a scoped visibility modifier, like `pub(crate)`, on fields"

clippy_lints/src/methods/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3964,7 +3964,7 @@ declare_clippy_lint! {
39643964
/// ```no_run
39653965
/// let _ = 0;
39663966
/// ```
3967-
#[clippy::version = "1.78.0"]
3967+
#[clippy::version = "1.81.0"]
39683968
pub UNNECESSARY_MIN_OR_MAX,
39693969
complexity,
39703970
"using 'min()/max()' when there is no need for it"
@@ -4099,7 +4099,7 @@ declare_clippy_lint! {
40994099
/// ```no_run
41004100
/// "foo".is_ascii();
41014101
/// ```
4102-
#[clippy::version = "1.80.0"]
4102+
#[clippy::version = "1.81.0"]
41034103
pub NEEDLESS_CHARACTER_ITERATION,
41044104
suspicious,
41054105
"is_ascii() called on a char iterator"

clippy_lints/src/needless_maybe_sized.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare_clippy_lint! {
2626
///
2727
/// // or choose alternative bounds for `T` so that it can be unsized
2828
/// ```
29-
#[clippy::version = "1.79.0"]
29+
#[clippy::version = "1.81.0"]
3030
pub NEEDLESS_MAYBE_SIZED,
3131
suspicious,
3232
"a `?Sized` bound that is unusable due to a `Sized` requirement"

clippy_lints/src/set_contains_or_insert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ declare_clippy_lint! {
4242
/// println!("inserted {value:?}");
4343
/// }
4444
/// ```
45-
#[clippy::version = "1.80.0"]
45+
#[clippy::version = "1.81.0"]
4646
pub SET_CONTAINS_OR_INSERT,
4747
nursery,
4848
"call to `<set>::contains` followed by `<set>::insert`"

clippy_lints/src/string_patterns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ declare_clippy_lint! {
3333
/// ```no_run
3434
/// "Hello World!".trim_end_matches(['.', ',', '!', '?']);
3535
/// ```
36-
#[clippy::version = "1.80.0"]
36+
#[clippy::version = "1.81.0"]
3737
pub MANUAL_PATTERN_CHAR_COMPARISON,
3838
style,
3939
"manual char comparison in string patterns"

0 commit comments

Comments
 (0)