mirror of https://github.com/fafhrd91/actix-web
				
				
				
			format code with formatter
This commit is contained in:
		
							parent
							
								
									3c3b5d0cdf
								
							
						
					
					
						commit
						e931a58092
					
				| 
						 | 
					@ -448,7 +448,7 @@ const mod_inner: () = {
 | 
				
			||||||
        actix_web::HttpResponse::Ok().finish()
 | 
					        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)
 | 
					        HttpResponse::Ok().body(message)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					@ -465,7 +465,7 @@ const mod_inner_v1: () = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#[scope("/v2")]
 | 
					#[scope("/v2")]
 | 
				
			||||||
const mod_inner_v2: () = {
 | 
					const mod_inner_v2: () = {
 | 
				
			||||||
    use actix_web:: Responder;
 | 
					    use actix_web::Responder;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #[actix_web::get("/test")]
 | 
					    #[actix_web::get("/test")]
 | 
				
			||||||
    pub async fn test() -> impl Responder {
 | 
					    pub async fn test() -> impl Responder {
 | 
				
			||||||
| 
						 | 
					@ -473,7 +473,6 @@ const mod_inner_v2: () = {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
#[actix_rt::test]
 | 
					#[actix_rt::test]
 | 
				
			||||||
async fn test_scope_get_async() {
 | 
					async fn test_scope_get_async() {
 | 
				
			||||||
    let srv = actix_test::start(|| App::new().service(mod_inner));
 | 
					    let srv = actix_test::start(|| App::new().service(mod_inner));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue