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_actix/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'askama_actix/src') diff --git a/askama_actix/src/lib.rs b/askama_actix/src/lib.rs index e0f78ca..742c7f2 100644 --- a/askama_actix/src/lib.rs +++ b/askama_actix/src/lib.rs @@ -3,12 +3,12 @@ use bytes::BytesMut; use actix_web::{error::ErrorInternalServerError, Error, HttpResponse}; -pub trait TemplateIntoResponse { - fn into_response(&self) -> ::std::result::Result; +pub trait TemplateToResponse { + fn to_response(&self) -> ::std::result::Result; } -impl TemplateIntoResponse for T { - fn into_response(&self) -> ::std::result::Result { +impl TemplateToResponse for T { + fn to_response(&self) -> ::std::result::Result { let mut buffer = BytesMut::with_capacity(self.size_hint()); self.render_into(&mut buffer) .map_err(|_| ErrorInternalServerError("Template parsing error"))?; -- cgit