From 601ee1e092fa1677f769601efb4d3a20d810fa86 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Sat, 1 Nov 2025 14:43:28 -0400 Subject: [PATCH] tsk-208: Code formatting --- src/config/host.rs | 1 - src/main.rs | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/config/host.rs b/src/config/host.rs index 1fb74e4..1bb0417 100644 --- a/src/config/host.rs +++ b/src/config/host.rs @@ -1,4 +1,3 @@ - /// Full hosting address that the application will be broadcasting pub fn get_full() -> String { format!("{ADDRESS}:{PORT}") diff --git a/src/main.rs b/src/main.rs index e25a950..93b4b6e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ pub mod auth; -pub mod config; pub mod callers; +pub mod config; pub mod repo; pub mod db { @@ -42,7 +42,9 @@ async fn main() { // build our application with a route let app = init::app().await; - let listener = tokio::net::TcpListener::bind(config::host::get_full()).await.unwrap(); + let listener = tokio::net::TcpListener::bind(config::host::get_full()) + .await + .unwrap(); axum::serve(listener, app).await.unwrap(); } @@ -305,8 +307,6 @@ pub mod init { } } - - #[cfg(test)] mod tests { use std::io::Write;