Skip to content

Commit

Permalink
API: Deprecate .dispose()
Browse files Browse the repository at this point in the history
  • Loading branch information
bluss committed Nov 25, 2018
1 parent e37ab57 commit 6e7d325
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ impl<A: Array> ArrayVec<A> {
}

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

0 comments on commit 6e7d325

Please sign in to comment.