Merge pull request #33 from SimonSapin/nonzero-checked_

Update for https://github.com/rust-lang/rust/pull/42959
pull/36/head
Alexis Beingessner 7 years ago committed by GitHub
commit 73d3a16559

@ -49,7 +49,7 @@ impl<T> RawVec<T> {
Err(err) => Heap.oom(err), Err(err) => Heap.oom(err),
}; };
self.ptr = Unique::new(ptr as *mut _); self.ptr = Unique::new_unchecked(ptr as *mut _);
self.cap = new_cap; self.cap = new_cap;
} }
} }

Loading…
Cancel
Save