Remove io::Result from serve output type

This commit is contained in:
Jonas Platte
2025-04-26 22:56:40 +02:00
parent ffea2bcba5
commit a697d5badd
56 changed files with 69 additions and 88 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ async fn main() {
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();
axum::serve(listener, app).await.unwrap();
axum::serve(listener, app).await;
}
async fn html() -> impl IntoResponse {