Merge pull request #235 from JohnTitor/fix-more

Follow-up of rust-lang/rust#75152
pull/236/head
Mark Rousskov 4 years ago committed by GitHub
commit 2585475254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -58,7 +58,7 @@ impl<T> RawVec<T> {
mem::align_of::<T>(), mem::align_of::<T>(),
)) ))
} }
let ptr = ptr.unwrap().ptr; let ptr = ptr.unwrap();
self.ptr = Unique::new_unchecked(ptr.as_ptr() as *mut _); self.ptr = Unique::new_unchecked(ptr.as_ptr() as *mut _);
self.cap = new_cap; self.cap = new_cap;

Loading…
Cancel
Save