fixup! Remove io::Result from serve output type

This commit is contained in:
Jonas Platte
2025-04-26 23:45:20 +02:00
parent bfb94cfd1e
commit b5cd093928
5 changed files with 6 additions and 8 deletions
+1 -3
View File
@@ -111,7 +111,5 @@ async fn serve(app: Router, port: u16) {
let addr = SocketAddr::from(([127, 0, 0, 1], port));
let listener = tokio::net::TcpListener::bind(addr).await.unwrap();
tracing::debug!("listening on {}", listener.local_addr().unwrap());
axum::serve(listener, app.layer(TraceLayer::new_for_http()))
.await
.unwrap();
axum::serve(listener, app.layer(TraceLayer::new_for_http())).await;
}