Skip to content

Commit 7c1bb9d

Browse files
committed
clippy
1 parent 34d7ec0 commit 7c1bb9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9126,7 +9126,7 @@ fn run_with_rust_allocator() {
91269126
unsafe extern "C" fn free(count: &AtomicUsize, data: *mut c_void, n: usize) {
91279127
count.fetch_sub(n, Ordering::SeqCst);
91289128
let _ = unsafe {
9129-
Box::from_raw(std::slice::from_raw_parts_mut(data as *mut u8, n))
9129+
Box::from_raw(std::ptr::slice_from_raw_parts_mut(data as *mut u8, n))
91309130
};
91319131
}
91329132
unsafe extern "C" fn drop(count: *const AtomicUsize) {

0 commit comments

Comments
 (0)