From 2dbdcdfb640a5e7c1eecfd6eae71ea9d5a05723e Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 15 Feb 2021 10:11:51 +0100 Subject: Rename askama_actix trait method as suggested by clippy By bumping the dependency versions for askama and askama_shared, this should be safe. --- askama_shared/src/generator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'askama_shared/src/generator.rs') 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("}") -- cgit