From e931a58092fa93fbbc7fa590529d6f9f962e1faa Mon Sep 17 00:00:00 2001 From: Jon Lim Date: Wed, 20 Sep 2023 19:55:12 -0700 Subject: [PATCH] format code with formatter --- actix-web-codegen/tests/test_macro.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/actix-web-codegen/tests/test_macro.rs b/actix-web-codegen/tests/test_macro.rs index 66173580a..bd864faf0 100644 --- a/actix-web-codegen/tests/test_macro.rs +++ b/actix-web-codegen/tests/test_macro.rs @@ -448,7 +448,7 @@ const mod_inner: () = { actix_web::HttpResponse::Ok().finish() } - pub fn mod_common(message : String) -> impl actix_web::Responder { + pub fn mod_common(message: String) -> impl actix_web::Responder { HttpResponse::Ok().body(message) } }; @@ -465,7 +465,7 @@ const mod_inner_v1: () = { #[scope("/v2")] const mod_inner_v2: () = { - use actix_web:: Responder; + use actix_web::Responder; #[actix_web::get("/test")] pub async fn test() -> impl Responder { @@ -473,7 +473,6 @@ const mod_inner_v2: () = { } }; - #[actix_rt::test] async fn test_scope_get_async() { let srv = actix_test::start(|| App::new().service(mod_inner)); @@ -595,4 +594,4 @@ async fn test_scope_v1_v2_async() { let body = response.body().await.unwrap(); let body_str = String::from_utf8(body.to_vec()).unwrap(); assert_eq!(body_str, "version2 works"); -} \ No newline at end of file +}