From 03a4f109b3a4e8c81a2e4fcd69b19a53029663b1 Mon Sep 17 00:00:00 2001 From: Jim Hodapp Date: Fri, 13 Dec 2024 12:30:40 -0600 Subject: [PATCH] cargo fmt --- web/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/src/lib.rs b/web/src/lib.rs index 30bee80..2dede74 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -25,7 +25,10 @@ pub(crate) mod extractors; mod router; pub async fn init_server(app_state: AppState) -> Result<()> { - info!("Connecting to DB with URI: {}", app_state.config.database_uri()); + info!( + "Connecting to DB with URI: {}", + app_state.config.database_uri() + ); // Session layer let session_store = PostgresStore::new( app_state @@ -62,7 +65,6 @@ pub async fn init_server(app_state: AppState) -> Result<()> { let server_url = format!("{host}:{port}"); let listen_addr = SocketAddr::from_str(&server_url).unwrap(); - let listener = TcpListener::bind(listen_addr).await.unwrap(); // Convert the type of the allow_origins Vec into a HeaderValue that the CorsLayer accepts let allowed_origins = app_state