From 44ad3df6e110cc85e58762b980df2f59f110834b Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 30 Jun 2020 13:51:12 +0200 Subject: Tweak dependency on futures for Actix integration --- askama_actix/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'askama_actix/src') diff --git a/askama_actix/src/lib.rs b/askama_actix/src/lib.rs index 7372034..e0f78ca 100644 --- a/askama_actix/src/lib.rs +++ b/askama_actix/src/lib.rs @@ -20,3 +20,10 @@ impl TemplateIntoResponse for T { .body(buffer.freeze())) } } + +// Re-exported for use by generated code +#[doc(hidden)] +pub mod futures { + pub use futures_util::future::ready; + pub use futures_util::future::Ready; +} -- cgit