mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-21 00:00:14 +02:00
Remove io::Result from serve output type
This commit is contained in:
@@ -110,7 +110,5 @@ async fn redirect_http_to_https(ports: Ports) {
|
||||
let addr = SocketAddr::from(([127, 0, 0, 1], ports.http));
|
||||
let listener = tokio::net::TcpListener::bind(addr).await.unwrap();
|
||||
tracing::debug!("listening on {}", listener.local_addr().unwrap());
|
||||
axum::serve(listener, redirect.into_make_service())
|
||||
.await
|
||||
.unwrap();
|
||||
axum::serve(listener, redirect.into_make_service()).await;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user