From 0b376b439f759613966916787b613616627bb3f9 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Fri, 25 Feb 2022 21:38:13 +0100 Subject: Actix Web v4.0 is here --- askama_shared/src/generator.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'askama_shared/src/generator.rs') diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index ea22a83..9997139 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -203,12 +203,12 @@ 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;")?; + self.write_header(buf, "::askama_actix::actix_web::Responder", None)?; + buf.writeln("type Body = ::askama_actix::actix_web::body::BoxBody;")?; buf.writeln("#[inline]")?; buf.writeln( - "fn respond_to(self, _req: &::actix_web::HttpRequest) \ - -> ::actix_web::web::HttpResponse {", + "fn respond_to(self, _req: &::askama_actix::actix_web::HttpRequest) \ + -> ::askama_actix::actix_web::HttpResponse {", )?; buf.writeln("::to_response(&self)")?; buf.writeln("}")?; -- cgit