Skip to content

Commit 3c848f7

Browse files
authored
Fix new cast_slice_from_raw_parts clippy lint (#3750)
1 parent 7817b8a commit 3c848f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/libs/core/src/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl<T: Type<T>> Array<T> {
9797
unsafe {
9898
// Call the destructors of all the elements of the old array
9999
// SAFETY: the slice cannot be used after the call to `drop_in_place`
100-
core::ptr::drop_in_place(core::slice::from_raw_parts_mut(data, len as usize));
100+
core::ptr::drop_in_place(core::ptr::slice_from_raw_parts_mut(data, len as usize));
101101
// Free the data memory where the elements were
102102
// SAFETY: we have unique access to the data pointer at this point
103103
// so freeing it is the right thing to do

0 commit comments

Comments
 (0)