Fix return types of serve futures (#3601)

This commit is contained in:
Jonas Platte
2025-12-28 09:25:50 +01:00
committed by GitHub
parent 370c6df40a
commit f3a95d786a
66 changed files with 105 additions and 122 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;
}