diff options
Diffstat (limited to '')
-rw-r--r-- | askama_actix/Cargo.toml | 4 | ||||
-rw-r--r-- | askama_shared/src/generator.rs | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/askama_actix/Cargo.toml b/askama_actix/Cargo.toml index 3c89f2a..06fd2b3 100644 --- a/askama_actix/Cargo.toml +++ b/askama_actix/Cargo.toml @@ -13,11 +13,11 @@ readme = "README.md" edition = "2018" [dependencies] -actix-web = { version = "4.0.0-beta.10", default-features = false } +actix-web = { version = "4.0.0-beta.14", default-features = false } askama = { version = "0.11.0", path = "../askama", default-features = false, features = ["with-actix-web", "mime", "mime_guess"] } bytes = { version = "1" } futures-util = { version = "0.3" } [dev-dependencies] actix-rt = { version = "2", default-features = false } -actix-test = "0.1.0-beta.5" +actix-test = "0.1.0-beta.8" diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index d264897..41b81df 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -213,9 +213,10 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { // Implement Actix-web's `Responder`. fn impl_actix_web_responder(&mut self, buf: &mut Buffer) -> Result<(), CompileError> { self.write_header(buf, "::actix_web::Responder", None)?; + buf.writeln("type Body = actix_web::body::BoxBody;")?; buf.writeln( "fn respond_to(self, _req: &::actix_web::HttpRequest) \ - -> ::actix_web::HttpResponse {", + -> ::actix_web::HttpResponse<Self::Body> {", )?; buf.writeln("use ::askama_actix::TemplateToResponse;")?; |