mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-17 00:00:16 +02:00
Fix return types of serve futures (#3601)
This commit is contained in:
@@ -29,7 +29,7 @@ async fn main() {
|
||||
.await
|
||||
.unwrap();
|
||||
tracing::debug!("listening on {}", listener.local_addr().unwrap());
|
||||
axum::serve(listener, app()).await.unwrap();
|
||||
axum::serve(listener, app()).await;
|
||||
}
|
||||
|
||||
/// Having a function that produces our app makes it easy to call it from tests
|
||||
@@ -132,7 +132,7 @@ mod tests {
|
||||
let addr = listener.local_addr().unwrap();
|
||||
|
||||
tokio::spawn(async move {
|
||||
axum::serve(listener, app()).await.unwrap();
|
||||
axum::serve(listener, app()).await;
|
||||
});
|
||||
|
||||
let client =
|
||||
|
||||
Reference in New Issue
Block a user