From 53c870c1f4e0e19fe73261502055d5950f884566 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 28 Sep 2024 18:46:03 +0200 Subject: [PATCH] Replace use of associated type bounds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … to keep MSRV at 1.75. --- axum/src/serve.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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,