Skip to content

Commit bf64376

Browse files
committed
API: Deprecate .dispose(), it no longer has a purpose without nodrop
1 parent 2a376d9 commit bf64376

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,8 @@ impl<A: Array> ArrayVec<A> {
628628
}
629629
}
630630

631-
/// Dispose of `self` without the overwriting that is needed in Drop.
631+
/// Dispose of `self` (same as drop)
632+
#[deprecated="Use std::mem::drop instead, if at all needed."]
632633
pub fn dispose(mut self) {
633634
self.clear();
634635
mem::forget(self);

0 commit comments

Comments
 (0)