Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Backport #7854
Browse files Browse the repository at this point in the history
...to fix compilation error when using futures-* v0.3.9.
  • Loading branch information
Xanewok committed Jan 8, 2021
1 parent 59ebcf7 commit b2536ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/offchain/src/api/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,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) {
Expand Down

0 comments on commit b2536ec

Please sign in to comment.