diff options
Diffstat (limited to '')
-rw-r--r-- | askama_actix/tests/basic.rs | 8 |
1 files changed, 3 insertions, 5 deletions
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() })) }); |