mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Clean Rust 1.90 clippy warnings
This commit is contained in:
@@ -744,7 +744,7 @@ pub unsafe extern "C" fn afc_rename_path(
|
||||
#[unsafe(no_mangle)]
|
||||
pub unsafe extern "C" fn afc_file_read_data_free(data: *mut u8, length: libc::size_t) {
|
||||
if !data.is_null() {
|
||||
let boxed = unsafe { Box::from_raw(std::slice::from_raw_parts_mut(data, length)) };
|
||||
let boxed = unsafe { Box::from_raw(std::ptr::slice_from_raw_parts_mut(data, length)) };
|
||||
drop(boxed);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ pub unsafe extern "C" fn misagent_free_profiles(
|
||||
|
||||
for (ptr, len) in profiles.iter_mut().zip(lens.iter()) {
|
||||
if !ptr.is_null() {
|
||||
let _ = unsafe { Box::from_raw(std::slice::from_raw_parts_mut(*ptr, *len)) };
|
||||
let _ = unsafe { Box::from_raw(std::ptr::slice_from_raw_parts_mut(*ptr, *len)) };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user