From 48321ff4c4efca93dbdaf530f331a134782aac3b Mon Sep 17 00:00:00 2001 From: mulhern Date: Mon, 6 Jan 2025 13:39:15 -0500 Subject: [PATCH] Do not specify the type of ptr::null() result Allow it to be determined by type inference. Signed-off-by: mulhern --- src/status.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status.rs b/src/status.rs index 8f14cc0f..d1f546a0 100644 --- a/src/status.rs +++ b/src/status.rs @@ -37,7 +37,7 @@ impl<'a> CryptDeviceStatusHandle<'a> { /// Dump text info about device to JSON output #[cfg(cryptsetup24supported)] pub fn dump_json(&mut self) -> Result { - let mut buffer: *const i8 = ptr::null(); + let mut buffer = ptr::null(); errno!(mutex!(libcryptsetup_rs_sys::crypt_dump_json( self.reference.as_ptr(), &mut buffer as *mut _,