This commit is contained in:
Daniil Gentili 2023-10-10 15:18:06 +03:00
parent a4e3485f36
commit 0773d72e79

View File

@ -32,7 +32,9 @@ impl<T> Deref for Vec<T> {
impl<T> Drop for Vec<T> {
fn drop(&mut self) {
unsafe { let _ = Box::from_raw(std::ptr::slice_from_raw_parts_mut(self.ptr, self.len)); };
unsafe {
let _ = Box::from_raw(std::ptr::slice_from_raw_parts_mut(self.ptr, self.len));
};
}
}