Skip to content

Commit a7a8b52

Browse files
committed
remove redundant cast
1 parent 470bf54 commit a7a8b52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/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)