aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/actix_web.rs
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/actix_web.rs')
-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()
})
});