aboutsummaryrefslogtreecommitdiffstats
path: root/askama_actix/tests
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-02-08 14:57:27 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-02-08 14:57:27 +0100
commit5d86086f557b72c37a5b50a891bc543b96ae2deb (patch)
tree13d52cc56cad7e557a477ef4ea675c9c35dc9b85 /askama_actix/tests
parentf123d4eee00323628ae32b1f9b01318402b729fa (diff)
downloadaskama-5d86086f557b72c37a5b50a891bc543b96ae2deb.tar.gz
askama-5d86086f557b72c37a5b50a891bc543b96ae2deb.tar.bz2
askama-5d86086f557b72c37a5b50a891bc543b96ae2deb.zip
Adapt to new warnings and formatting
Diffstat (limited to '')
-rw-r--r--askama_actix/tests/basic.rs8
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()
}))
});