Add into_inner to AssertRecoverSafe
This commit is contained in:
parent
0d1cd9bd6a
commit
b6a65df6d5
1 changed files with 6 additions and 0 deletions
|
@ -193,6 +193,12 @@ impl<T> AssertRecoverSafe<T> {
|
|||
pub fn new(t: T) -> AssertRecoverSafe<T> {
|
||||
AssertRecoverSafe(t)
|
||||
}
|
||||
|
||||
/// Consumes the `AssertRecoverSafe`, returning the wrapped value.
|
||||
#[unstable(feature = "recover", reason = "awaiting feedback", issue = "27719")]
|
||||
pub fn into_inner(self) -> T {
|
||||
self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Deref for AssertRecoverSafe<T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue