Skip to content

Commit

Permalink
Merge pull request #203 from JohnTitor/ptr
Browse files Browse the repository at this point in the history
Rustup to latest rustc
  • Loading branch information
Centril committed Mar 4, 2020
2 parents 71241f4 + d2ed4eb commit 9f797e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vec-final.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl<T> RawVec<T> {
mem::align_of::<T>(),
))
}
let ptr = ptr.unwrap();
let (ptr, _) = ptr.unwrap();

self.ptr = Unique::new_unchecked(ptr.as_ptr() as *mut _);
self.cap = new_cap;
Expand Down

0 comments on commit 9f797e6

Please sign in to comment.