Remove RawVec::cap()

As suggested in https://github.com/rust-lang/rust/pull/60340#issuecomment-493681032
This commit is contained in:
Matthias Geier 2019-06-25 15:44:21 +02:00
parent 0967d28be7
commit abe3bdf257

View File

@ -209,12 +209,6 @@ impl<T, A: Alloc> RawVec<T, A> {
}
}
// For backwards compatibility
#[inline(always)]
pub fn cap(&self) -> usize {
self.capacity()
}
/// Returns a shared reference to the allocator backing this RawVec.
pub fn alloc(&self) -> &A {
&self.a