diff --git a/axum/src/serve.rs b/axum/src/serve.rs index 6dd9775afd9..6812dab7b00 100644 --- a/axum/src/serve.rs +++ b/axum/src/serve.rs @@ -263,7 +263,8 @@ where #[cfg(all(feature = "tokio", any(feature = "http1", feature = "http2")))] impl IntoFuture for Serve where - L: Listener, + L: Listener, + L::Addr: Debug, M: for<'a> Service, Error = Infallible, Response = S> + Send + 'static, for<'a> >>::Future: Send, S: Service + Clone + Send + 'static, @@ -362,7 +363,8 @@ where #[cfg(all(feature = "tokio", any(feature = "http1", feature = "http2")))] impl IntoFuture for WithGracefulShutdown where - L: Listener, + L: Listener, + L::Addr: Debug, M: for<'a> Service, Error = Infallible, Response = S> + Send + 'static, for<'a> >>::Future: Send, S: Service + Clone + Send + 'static,