housekeeping(server): fixed clippy warns
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
|
||||
#[cfg(feature = "authn")]
|
||||
pub mod authn;
|
||||
|
||||
|
||||
#[cfg(feature = "safecell")]
|
||||
pub mod safecell;
|
||||
pub mod safecell;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user