1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-05-19 16:58:14 +00:00

format code with formatter

This commit is contained in:
Jon Lim 2023-09-20 19:55:12 -07:00
parent 3c3b5d0cdf
commit e931a58092

View file

@ -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");
}
}