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;