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
+2 -2
View File
@@ -34,7 +34,7 @@ async fn main() {
.await
.unwrap();
println!("listening on {}", listener.local_addr().unwrap());
axum::serve(listener, app).await.unwrap();
axum::serve(listener, app).await;
}
async fn handler(State(client): State<Client>, mut req: Request) -> Result<Response, StatusCode> {
@@ -63,5 +63,5 @@ async fn server() {
.await
.unwrap();
println!("listening on {}", listener.local_addr().unwrap());
axum::serve(listener, app).await.unwrap();
axum::serve(listener, app).await;
}