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_shared/src/generator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'askama_shared/src') diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 36ac55e..180a356 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -254,7 +254,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { // Implement Actix-web's `Responder`. fn impl_actix_web_responder(&mut self, buf: &mut Buffer) { self.write_header(buf, "::actix_web::Responder", None); - buf.writeln("type Future = ::futures::future::Ready<::std::result::Result<::actix_web::HttpResponse, Self::Error>>;"); + buf.writeln("type Future = ::askama_actix::futures::Ready<::std::result::Result<::actix_web::HttpResponse, Self::Error>>;"); buf.writeln("type Error = ::actix_web::Error;"); buf.writeln( "fn respond_to(self, _req: &::actix_web::HttpRequest) \ @@ -262,7 +262,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { ); buf.writeln("use ::askama_actix::TemplateIntoResponse;"); - buf.writeln("::futures::future::ready(self.into_response())"); + buf.writeln("::askama_actix::futures::ready(self.into_response())"); buf.writeln("}"); buf.writeln("}"); -- cgit