aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2021-02-15 10:11:51 +0100
committerLibravatar Christian Vallentin <vallentinsource@gmail.com>2021-02-15 11:10:48 +0100
commit2dbdcdfb640a5e7c1eecfd6eae71ea9d5a05723e (patch)
tree43fd2629b0d61df8ce1db8961ec476c1a4c6ad4b /askama_shared
parentf5f35dad5626ad20d20f8497227428057bc0d841 (diff)
downloadaskama-2dbdcdfb640a5e7c1eecfd6eae71ea9d5a05723e.tar.gz
askama-2dbdcdfb640a5e7c1eecfd6eae71ea9d5a05723e.tar.bz2
askama-2dbdcdfb640a5e7c1eecfd6eae71ea9d5a05723e.zip
Rename askama_actix trait method as suggested by clippy
By bumping the dependency versions for askama and askama_shared, this should be safe.
Diffstat (limited to 'askama_shared')
-rw-r--r--askama_shared/Cargo.toml2
-rw-r--r--askama_shared/src/generator.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/askama_shared/Cargo.toml b/askama_shared/Cargo.toml
index a628aa4..e341b2e 100644
--- a/askama_shared/Cargo.toml
+++ b/askama_shared/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "askama_shared"
-version = "0.11.1"
+version = "0.11.2"
authors = ["Dirkjan Ochtman <dirkjan@ochtman.nl>"]
description = "Shared code for Askama"
homepage = "https://github.com/djc/askama"
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs
index 9907c0b..e74de14 100644
--- a/askama_shared/src/generator.rs
+++ b/askama_shared/src/generator.rs
@@ -221,8 +221,8 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> {
-> Self::Future {",
)?;
- buf.writeln("use ::askama_actix::TemplateIntoResponse;")?;
- buf.writeln("::askama_actix::futures::ready(self.into_response())")?;
+ buf.writeln("use ::askama_actix::TemplateToResponse;")?;
+ buf.writeln("::askama_actix::futures::ready(self.to_response())")?;
buf.writeln("}")?;
buf.writeln("}")