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/tests/basic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'askama_actix/tests/basic.rs') diff --git a/askama_actix/tests/basic.rs b/askama_actix/tests/basic.rs index 4f600fb..125270f 100644 --- a/askama_actix/tests/basic.rs +++ b/askama_actix/tests/basic.rs @@ -1,7 +1,7 @@ use actix_web::http::header::CONTENT_TYPE; use actix_web::test; use actix_web::web; -use askama_actix::{Template, TemplateIntoResponse}; +use askama_actix::{Template, TemplateToResponse}; use bytes::Bytes; #[derive(Template)] @@ -34,7 +34,7 @@ async fn test_actix_web_responder() { let srv = test::start(|| { actix_web::App::new().service(web::resource("/").to(|| async { let name = "world".to_owned(); - HelloTemplate { name: &name }.into_response() + HelloTemplate { name: &name }.to_response() })) }); -- cgit