Update to futures 0.3.9 (#7854)

This commit is contained in:
Pierre Krieger authored and GitHub committed 2021-01-08 15:47:33 +00:00
1 parent 467599df13
commit a4032b1dfb
26 files changed
+121 -121

No files matched your search

@@ -52,7 +52,7 @@ pub fn timestamp_from_now(timestamp: Timestamp) -> Duration {
/// If `None`, returns a never-ending `Future`.
pub fn deadline_to_future(
deadline: Option<Timestamp>,
) -> futures::future::MaybeDone<impl futures::Future> {
) -> futures::future::MaybeDone<impl futures::Future<Output = ()>> {
use futures::future::{self, Either};
future::maybe_done(match deadline.map(timestamp_from_now) {