Skip to content

Commit 9244f97

Browse files
committed
API: Deprecate .dispose()
1 parent c0924e2 commit 9244f97

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
@@ -580,6 +580,7 @@ impl<A: Array> ArrayVec<A> {
580580
}
581581

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

0 commit comments

Comments
 (0)