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
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -35,7 +35,7 @@
/// 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`"
+1 -1
View File
@@ -27,7 +27,7 @@
/// 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`"
+1 -1
View File
@@ -114,7 +114,7 @@
/// 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"
+1 -1
View File
@@ -39,7 +39,7 @@
/// 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"
+1 -1
View File
@@ -35,7 +35,7 @@
/// 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"