From 23ff7ad636b4c0e26d3242747d50b7123831a1a8 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 20 Feb 2019 20:02:56 +0100 Subject: Simplify actix-web implementations --- testing/tests/actix_web.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing') 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() }) }); -- cgit