diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-06-30 13:51:12 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-06-30 13:51:12 +0200 |
commit | 44ad3df6e110cc85e58762b980df2f59f110834b (patch) | |
tree | fea7d0a402f2e3f7e6d1d903899b243f74aab546 /askama_shared/src | |
parent | 05b66eb3d9b7790dfeccee4eafef952f7a7ea29f (diff) | |
download | askama-44ad3df6e110cc85e58762b980df2f59f110834b.tar.gz askama-44ad3df6e110cc85e58762b980df2f59f110834b.tar.bz2 askama-44ad3df6e110cc85e58762b980df2f59f110834b.zip |
Tweak dependency on futures for Actix integration
Diffstat (limited to '')
-rw-r--r-- | askama_shared/src/generator.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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("}"); |