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 +}