Skip to content

Commit dc331a7

Browse files
authored
Fix clippy lint cast_slice_from_raw_parts (#1536)
1 parent 7c56e84 commit dc331a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/partial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl<T> Drop for Partial<T>
9393
{
9494
if !self.ptr.is_null() {
9595
unsafe {
96-
ptr::drop_in_place(alloc::slice::from_raw_parts_mut(self.ptr, self.len));
96+
ptr::drop_in_place(core::ptr::slice_from_raw_parts_mut(self.ptr, self.len));
9797
}
9898
}
9999
}

0 commit comments

Comments
 (0)