From 228f6b2b34913077259e2d54036154a6d6f5bd10 Mon Sep 17 00:00:00 2001 From: CrunkLord420 Date: Sun, 12 Dec 2021 04:07:46 +0000 Subject: updated for actix-web 4.0.0-beta.14 --- askama_shared/src/generator.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'askama_shared') 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 {", )?; buf.writeln("use ::askama_actix::TemplateToResponse;")?; -- cgit