diff options
author | René Kijewski <kijewski@library.vetmed.fu-berlin.de> | 2022-02-25 21:38:13 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2022-02-25 22:04:16 +0100 |
commit | 0b376b439f759613966916787b613616627bb3f9 (patch) | |
tree | b429ab3c71b616dd4e827361825ba1776f5faafa /askama_shared/src/generator.rs | |
parent | 09429bb01f6b0112b2a7a6b10bdc35e079da97fa (diff) | |
download | askama-0b376b439f759613966916787b613616627bb3f9.tar.gz askama-0b376b439f759613966916787b613616627bb3f9.tar.bz2 askama-0b376b439f759613966916787b613616627bb3f9.zip |
Actix Web v4.0 is here
Diffstat (limited to 'askama_shared/src/generator.rs')
-rw-r--r-- | askama_shared/src/generator.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<Self::Body> {", + "fn respond_to(self, _req: &::askama_actix::actix_web::HttpRequest) \ + -> ::askama_actix::actix_web::HttpResponse<Self::Body> {", )?; buf.writeln("<Self as ::askama_actix::TemplateToResponse>::to_response(&self)")?; buf.writeln("}")?; |