diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-10-12 18:23:46 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-10-12 18:23:46 -0500 |
commit | 8b9eb6eb88d871309348dff1527d69b4b32a98ec (patch) | |
tree | 4a8d25f3b0db4a6ff7c258f3ea7a508e6b68de82 /src/main.rs | |
parent | 0ea877c5d0de10b45768da80c658785835d625e6 (diff) |
refactor: simplify service trait, again
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index d5a35b7..df69e16 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,7 +30,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { router = router.layer(tower_http::trace::TraceLayer::new_for_http()); - let listener = tokio::net::TcpListener::bind(config.address).await.unwrap(); + let listener = tokio::net::TcpListener::bind(config.address).await?; tracing::info!("listening on {}", listener.local_addr().unwrap()); axum::serve(listener, router).await.map_err(Into::into) |