aboutsummaryrefslogtreecommitdiffstats
path: root/askama_actix/tests/basic.rs
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_actix/tests/basic.rs
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_actix/tests/basic.rs')
-rw-r--r--askama_actix/tests/basic.rs4
1 files changed, 2 insertions, 2 deletions
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()
}))
});