Skip to content

Commit

Permalink
Fix is_terminated
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaeroxe authored and cramertj committed Feb 3, 2020
1 parent 3e936bc commit 1329276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures-util/src/future/try_future/map_ok_or_else.rs
Expand Up @@ -31,7 +31,7 @@ impl<Fut, F, E, T> FusedFuture for MapOkOrElse<Fut, F, E>
E: FnOnce(Fut::Error) -> T,
{
fn is_terminated(&self) -> bool {
self.f.is_none()
self.f.is_none() || self.e.is_none()
}
}

Expand Down

0 comments on commit 1329276

Please sign in to comment.