Skip to content

Commit 068a97e

Browse files
committed
Fix nightly clippy slice::from_raw_parts_mut warning.
1 parent 12eebcf commit 068a97e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cubeb-backend/src/capi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ pub unsafe extern "C" fn capi_device_collection_destroy<CTX: ContextOps>(
198198
let ctx = &mut *(c as *mut CTX);
199199
let collection = &mut *(collection);
200200

201-
let coll = Box::from_raw(std::slice::from_raw_parts_mut(
201+
let coll = Box::from_raw(std::ptr::slice_from_raw_parts_mut(
202202
collection.device as *mut DeviceInfo,
203203
collection.count,
204204
));

0 commit comments

Comments
 (0)