aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2019-02-20 20:02:56 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2019-02-20 20:43:40 +0100
commit23ff7ad636b4c0e26d3242747d50b7123831a1a8 (patch)
treed9ef104e34924acf28ab3b9fbd96a19a0648eb37 /testing
parent292bf7baed7e96ab44085643f960014910835e53 (diff)
downloadaskama-23ff7ad636b4c0e26d3242747d50b7123831a1a8.tar.gz
askama-23ff7ad636b4c0e26d3242747d50b7123831a1a8.tar.bz2
askama-23ff7ad636b4c0e26d3242747d50b7123831a1a8.zip
Simplify actix-web implementations
Diffstat (limited to 'testing')
-rw-r--r--testing/tests/actix_web.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/actix_web.rs b/testing/tests/actix_web.rs
index 267736d..7f2d835 100644
--- a/testing/tests/actix_web.rs
+++ b/testing/tests/actix_web.rs
@@ -2,7 +2,7 @@
use actix_web::http::header::CONTENT_TYPE;
use actix_web::test;
use actix_web::HttpMessage;
-use askama::{actix_web::TemplateResponder, Template};
+use askama::{actix_web::TemplateIntoResponse, Template};
use bytes::Bytes;
#[derive(Template)]
@@ -29,7 +29,7 @@ fn test_actix_web_responder() {
let mut srv = test::TestServer::new(|app| {
app.handler(|_| {
let name = "world".to_owned();
- HelloTemplate { name: &name }.responder()
+ HelloTemplate { name: &name }.into_response()
})
});