Update version attributes for 1.76 lints

This commit is contained in:
xFrednet 2024-02-04 16:18:31 +01:00
parent 9fb41079ca
commit be47e32e9e
No known key found for this signature in database
GPG Key ID: F5C59D0E669E5302
4 changed files with 4 additions and 4 deletions

View File

@ -226,7 +226,7 @@
/// unimplemented!();
/// }
/// ```
#[clippy::version = "1.40.0"]
#[clippy::version = "1.76.0"]
pub TEST_ATTR_IN_DOCTEST,
suspicious,
"presence of `#[test]` in code examples"

View File

@ -34,7 +34,7 @@
/// let value = &my_map[key];
/// }
/// ```
#[clippy::version = "1.75.0"]
#[clippy::version = "1.76.0"]
pub ITER_OVER_HASH_TYPE,
restriction,
"iterating over unordered hash-based types (`HashMap` and `HashSet`)"

View File

@ -672,7 +672,7 @@
/// }
/// }
/// ```
#[clippy::version = "1.75.0"]
#[clippy::version = "1.76.0"]
pub INFINITE_LOOP,
restriction,
"possibly unintended infinite loop"

View File

@ -42,7 +42,7 @@
/// // ^^^ this closure executes 123 times
/// // and the vecs will have the expected capacity
/// ```
#[clippy::version = "1.74.0"]
#[clippy::version = "1.76.0"]
pub REPEAT_VEC_WITH_CAPACITY,
suspicious,
"repeating a `Vec::with_capacity` expression which does not retain capacity"