Implement Default for AssertUnwindSafe
Trait impls are still insta-stable yeah...?
This commit is contained in:
parent
625e4dd13a
commit
8d5a4963df
1 changed files with 7 additions and 0 deletions
|
@ -279,6 +279,13 @@ impl<T: fmt::Debug> fmt::Debug for AssertUnwindSafe<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[stable(feature = "assertunwindsafe_default", since = "1.62.0")]
|
||||||
|
impl<T: Default> Default for AssertUnwindSafe<T> {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self(Default::default())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[stable(feature = "futures_api", since = "1.36.0")]
|
#[stable(feature = "futures_api", since = "1.36.0")]
|
||||||
impl<F: Future> Future for AssertUnwindSafe<F> {
|
impl<F: Future> Future for AssertUnwindSafe<F> {
|
||||||
type Output = F::Output;
|
type Output = F::Output;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue