diff options
Diffstat (limited to 'askama_shared/src/generator.rs')
-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;")?; |