diff --git a/futures-util/src/future/option.rs b/futures-util/src/future/option.rs index 426fe50fea..0bc377758a 100644 --- a/futures-util/src/future/option.rs +++ b/futures-util/src/future/option.rs @@ -31,6 +31,12 @@ pin_project! { } } +impl Default for OptionFuture { + fn default() -> Self { + Self { inner: None } + } +} + impl Future for OptionFuture { type Output = Option;