Skip to content

Commit

Permalink
Merge pull request #392 from mulkieran/type-inference-ptr_null
Browse files Browse the repository at this point in the history
Do not specify the type of ptr::null() result
  • Loading branch information
mulkieran authored Jan 6, 2025
2 parents e2f2d06 + 48321ff commit 0b2495a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Value, LibcryptErr> {
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 _,
Expand Down

0 comments on commit 0b2495a

Please sign in to comment.