aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2022-02-25 21:38:13 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-02-25 22:04:16 +0100
commit0b376b439f759613966916787b613616627bb3f9 (patch)
treeb429ab3c71b616dd4e827361825ba1776f5faafa /askama_shared
parent09429bb01f6b0112b2a7a6b10bdc35e079da97fa (diff)
downloadaskama-0b376b439f759613966916787b613616627bb3f9.tar.gz
askama-0b376b439f759613966916787b613616627bb3f9.tar.bz2
askama-0b376b439f759613966916787b613616627bb3f9.zip
Actix Web v4.0 is here
Diffstat (limited to '')
-rw-r--r--askama_shared/Cargo.toml2
-rw-r--r--askama_shared/src/generator.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/askama_shared/Cargo.toml b/askama_shared/Cargo.toml
index 1a69867..8e2be28 100644
--- a/askama_shared/Cargo.toml
+++ b/askama_shared/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "askama_shared"
-version = "0.12.1"
+version = "0.12.2"
description = "Shared code for Askama"
homepage = "https://github.com/djc/askama"
repository = "https://github.com/djc/askama"
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("}")?;