Skip to content

Commit 0f62cb3

Browse files
committed
remove redundant cast
1 parent 5e44a08 commit 0f62cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alloc/src/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2181,7 +2181,7 @@ impl<T> Drop for InPlaceDrop<T> {
21812181
#[inline]
21822182
fn drop(&mut self) {
21832183
unsafe {
2184-
ptr::drop_in_place(slice::from_raw_parts_mut(self.inner, self.len()) as *mut _);
2184+
ptr::drop_in_place(slice::from_raw_parts_mut(self.inner, self.len()));
21852185
}
21862186
}
21872187
}

0 commit comments

Comments
 (0)