diff options
Diffstat (limited to 'askama_actix/tests/basic.rs')
-rw-r--r-- | askama_actix/tests/basic.rs | 4 |
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() })) }); |