Skip to content

Commit 21ce956

Browse files
committed
Rename clippy::identity_conversion lint allow
`clippy::identity_conversion` has been renamed in Rust 1.45.0 to `clippy::useless_conversion`. Fixes this warning (which is upgraded to an error in CI): ``` warning: lint `clippy::identity_conversion` has been renamed to `clippy::useless_conversion` --> tests/leak/mod.rs:64:9 | 64 | #[allow(clippy::identity_conversion)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::useless_conversion` ``` This was caught by the scheduled CI run.
1 parent be62715 commit 21ce956

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/leak/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl<'a, T> Looper<'a, T> {
6161
}
6262

6363
#[cfg(target_os = "linux")]
64-
#[allow(clippy::identity_conversion)]
64+
#[allow(clippy::useless_conversion)]
6565
fn resident_memsize() -> i64 {
6666
let mut out = MaybeUninit::<libc::rusage>::uninit();
6767
assert!(unsafe { libc::getrusage(libc::RUSAGE_SELF, out.as_mut_ptr()) } == 0);

0 commit comments

Comments
 (0)