From 5d86086f557b72c37a5b50a891bc543b96ae2deb Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sat, 8 Feb 2020 14:57:27 +0100 Subject: Adapt to new warnings and formatting --- askama_actix/tests/basic.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'askama_actix/tests') diff --git a/askama_actix/tests/basic.rs b/askama_actix/tests/basic.rs index f4beff7..4f600fb 100644 --- a/askama_actix/tests/basic.rs +++ b/askama_actix/tests/basic.rs @@ -32,11 +32,9 @@ async fn test_actix_web() { #[actix_rt::test] 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() - } + actix_web::App::new().service(web::resource("/").to(|| async { + let name = "world".to_owned(); + HelloTemplate { name: &name }.into_response() })) }); -- cgit