Skip to content

Commit 6e7d325

Browse files
committed
API: Deprecate .dispose()
1 parent e37ab57 commit 6e7d325

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ impl<A: Array> ArrayVec<A> {
589589
}
590590

591591
/// Dispose of `self` without the overwriting that is needed in Drop.
592+
#[deprecated(note="This method is now obsolete and is no better than dropping")]
592593
pub fn dispose(mut self) {
593594
self.clear();
594595
mem::forget(self);

0 commit comments

Comments
 (0)