aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-06-30 13:51:12 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-06-30 13:51:12 +0200
commit44ad3df6e110cc85e58762b980df2f59f110834b (patch)
treefea7d0a402f2e3f7e6d1d903899b243f74aab546 /askama_shared/src
parent05b66eb3d9b7790dfeccee4eafef952f7a7ea29f (diff)
downloadaskama-44ad3df6e110cc85e58762b980df2f59f110834b.tar.gz
askama-44ad3df6e110cc85e58762b980df2f59f110834b.tar.bz2
askama-44ad3df6e110cc85e58762b980df2f59f110834b.zip
Tweak dependency on futures for Actix integration
Diffstat (limited to 'askama_shared/src')
-rw-r--r--askama_shared/src/generator.rs4
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("}");