Skip to content

Commit aaa16a0

Browse files
committed
remove redundant cast
1 parent 2ad9a4b commit aaa16a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,7 @@ impl<T> Drop for InPlaceDrop<T> {
20752075
#[inline]
20762076
fn drop(&mut self) {
20772077
unsafe {
2078-
ptr::drop_in_place(slice::from_raw_parts_mut(self.inner, self.len()) as *mut _);
2078+
ptr::drop_in_place(slice::from_raw_parts_mut(self.inner, self.len()));
20792079
}
20802080
}
20812081
}

0 commit comments

Comments
 (0)