Skip to content
Snippets Groups Projects
Commit b2536ecf authored by Igor Matuszewski's avatar Igor Matuszewski
Browse files

Backport paritytech/substrate#7854

...to fix compilation error when using futures-* v0.3.9.
parent 59ebcf71
No related merge requests found
......@@ -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) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment