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()
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    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");
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue