diff options
author | CrunkLord420 <crunklord420@lolcow.email> | 2021-12-12 04:07:46 +0000 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2021-12-14 20:49:43 +0100 |
commit | 228f6b2b34913077259e2d54036154a6d6f5bd10 (patch) | |
tree | a0816b99d10226e4778456e61479e740ede5c17a /askama_shared/src | |
parent | 95317478ccb9baab3d1797d693e4c33008434b50 (diff) | |
download | askama-228f6b2b34913077259e2d54036154a6d6f5bd10.tar.gz askama-228f6b2b34913077259e2d54036154a6d6f5bd10.tar.bz2 askama-228f6b2b34913077259e2d54036154a6d6f5bd10.zip |
updated for actix-web 4.0.0-beta.14
Diffstat (limited to '')
-rw-r--r-- | askama_shared/src/generator.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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;")?; |