tackle various clippy lints

This commit is contained in:
auronandace
2026-06-05 14:36:06 +01:00
parent 15c415072f
commit 94b2f29beb
12 changed files with 66 additions and 69 deletions
+1 -1
View File
@@ -368,7 +368,7 @@ pub unsafe extern "C" fn exit(status: c_int) -> ! {
}
// Look for the neighbor functions in memory until the end
let mut f = unsafe { &__fini_array_end } as *const _;
let mut f = core::ptr::from_ref(unsafe { &__fini_array_end });
#[allow(clippy::op_ref)]
while f > &raw const __fini_array_start {
f = unsafe { f.offset(-1) };