Skip to content

Commit 666c5ec

Browse files
committed
API: Remove deprecated ArrayVec::dispose
1 parent 63ecdeb commit 666c5ec

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/arrayvec.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -596,13 +596,6 @@ impl<T, const CAP: usize> ArrayVec<T, CAP> {
596596
}
597597
}
598598

599-
/// Dispose of `self` (same as drop)
600-
#[deprecated="Use std::mem::drop instead, if at all needed."]
601-
pub fn dispose(mut self) {
602-
self.clear();
603-
mem::forget(self);
604-
}
605-
606599
/// Return a slice containing all elements of the vector.
607600
pub fn as_slice(&self) -> &[T] {
608601
ArrayVecImpl::as_slice(self)

0 commit comments

Comments
 (0)