housekeeping(server): fixed clippy warns

This commit is contained in:
hdbg
2026-04-07 16:25:21 +02:00
committed by Skipper
parent 6b814f4869
commit a49baf7386
19 changed files with 68 additions and 84 deletions

View File

@@ -107,7 +107,7 @@ fn abort_memory_breach(action: &str, err: &memsafe::error::MemoryError) -> ! {
eprintln!("fatal {action}: {err}");
// SAFETY: Intentionally cause a segmentation fault to prevent further execution in a compromised state.
unsafe {
let unsafe_pointer = 0x0 as *mut u8;
let unsafe_pointer = std::ptr::null_mut::<u8>();
std::ptr::write_volatile(unsafe_pointer, 0);
}
std::process::abort();