From db35977fbe609cb90ae32bfc347d476377c3cde5 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sat, 22 Jul 2023 22:29:35 +0100 Subject: [PATCH] chore: fmt --- databases/postgres/src/main.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/databases/postgres/src/main.rs b/databases/postgres/src/main.rs index 910a3c4..b80dbe2 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();