API: Remove deprecated ArrayVec::dispose

This commit is contained in:
bluss
2021-03-23 21:43:19 +01:00
parent 63ecdeb0b8
commit 666c5ece59
-7
View File
@@ -596,13 +596,6 @@ impl<T, const CAP: usize> ArrayVec<T, CAP> {
}
}
/// Dispose of `self` (same as drop)
#[deprecated="Use std::mem::drop instead, if at all needed."]
pub fn dispose(mut self) {
self.clear();
mem::forget(self);
}
/// Return a slice containing all elements of the vector.
pub fn as_slice(&self) -> &[T] {
ArrayVecImpl::as_slice(self)