diff --git a/databases/postgres/src/main.rs b/databases/postgres/src/main.rs index 910a3c43..b80dbe25 100644 --- a/databases/postgres/src/main.rs +++ b/databases/postgres/src/main.rs @@ -145,13 +145,11 @@ async fn main() -> std::io::Result<()> { let pool = config.pg.create_pool(None, NoTls).unwrap(); let server = HttpServer::new(move || { - App::new() - .app_data(web::Data::new(pool.clone())) - .service( - web::resource("/users") - .route(web::post().to(add_user)) - .route(web::get().to(get_users)) - ) + App::new().app_data(web::Data::new(pool.clone())).service( + web::resource("/users") + .route(web::post().to(add_user)) + .route(web::get().to(get_users)), + ) }) .bind(config.server_addr.clone())? .run();