apply clippy::borrow-as-ptr lint

This commit is contained in:
auronandace
2026-02-03 12:02:26 +00:00
parent 38e1aeddb8
commit ac0a7e71f4
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -865,7 +865,7 @@ impl DSO {
};
// Ensure the DTV entry is initialised.
unsafe { __tls_get_addr(&mut tls_index) };
unsafe { __tls_get_addr(&raw mut tls_index) };
*resolver = __tlsdesc_dynamic as *const () as usize;
*descriptor = Box::into_raw(Box::new(TlsDescriptor {
+1 -1
View File
@@ -523,7 +523,7 @@ impl Linker {
ti_offset: symbol.value,
};
unsafe { __tls_get_addr(&mut tls_index) }
unsafe { __tls_get_addr(&raw mut tls_index) }
}
})
}
+1 -1
View File
@@ -143,7 +143,7 @@ pub unsafe fn init(
{
const ARCH_GET_FS: usize = 0x1003;
let mut val = 0usize;
syscall!(ARCH_PRCTL, ARCH_GET_FS, &mut val as *mut usize);
syscall!(ARCH_PRCTL, ARCH_GET_FS, &raw mut val);
tp = val;
}
#[cfg(target_arch = "aarch64")]