1
Fork 0

Update version attributes for 1.83 lints

This commit is contained in:
xFrednet 2024-11-21 13:50:31 +00:00
parent a19d69d273
commit 78d0a2aaac
No known key found for this signature in database
GPG key ID: E126C23F63C8907A
5 changed files with 5 additions and 5 deletions

View file

@ -35,7 +35,7 @@ declare_clippy_lint! {
/// let y: i32 = 4;
/// let div = x.div_ceil(y);
/// ```
#[clippy::version = "1.81.0"]
#[clippy::version = "1.83.0"]
pub MANUAL_DIV_CEIL,
complexity,
"manually reimplementing `div_ceil`"

View file

@ -27,7 +27,7 @@ declare_clippy_lint! {
/// let a: u32 = 4;
/// let result = a.is_power_of_two();
/// ```
#[clippy::version = "1.82.0"]
#[clippy::version = "1.83.0"]
pub MANUAL_IS_POWER_OF_TWO,
pedantic,
"manually reimplementing `is_power_of_two`"

View file

@ -114,7 +114,7 @@ declare_clippy_lint! {
/// let _ = FooStruct{};
/// }
/// ```
#[clippy::version = "pre 1.29.0"]
#[clippy::version = "1.83.0"]
pub USED_UNDERSCORE_ITEMS,
pedantic,
"using a item which is prefixed with an underscore"

View file

@ -39,7 +39,7 @@ declare_clippy_lint! {
/// let r2 = x % NonZeroU64::from(y);
/// }
/// ```
#[clippy::version = "1.81.0"]
#[clippy::version = "1.83.0"]
pub NON_ZERO_SUGGESTIONS,
restriction,
"suggests using `NonZero#` from `u#` or `i#` for more efficient and type-safe conversions"

View file

@ -35,7 +35,7 @@ declare_clippy_lint! {
/// let mut child = Command::new("ls").spawn().expect("failed to execute child");
/// child.wait().expect("failed to wait on child");
/// ```
#[clippy::version = "1.74.0"]
#[clippy::version = "1.83.0"]
pub ZOMBIE_PROCESSES,
suspicious,
"not waiting on a spawned child process"