Skip to content

Commit

Permalink
Replace use of associated type bounds
Browse files Browse the repository at this point in the history
… to keep MSRV at 1.75.
  • Loading branch information
jplatte committed Sep 28, 2024
1 parent 5cecf2c commit 53c870c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions axum/src/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ where
#[cfg(all(feature = "tokio", any(feature = "http1", feature = "http2")))]
impl<L, M, S> IntoFuture for Serve<L, M, S>
where
L: Listener<Addr: Debug>,
L: Listener,
L::Addr: Debug,
M: for<'a> Service<IncomingStream<'a, L>, Error = Infallible, Response = S> + Send + 'static,
for<'a> <M as Service<IncomingStream<'a, L>>>::Future: Send,
S: Service<Request, Response = Response, Error = Infallible> + Clone + Send + 'static,
Expand Down Expand Up @@ -362,7 +363,8 @@ where
#[cfg(all(feature = "tokio", any(feature = "http1", feature = "http2")))]
impl<L, M, S, F> IntoFuture for WithGracefulShutdown<L, M, S, F>
where
L: Listener<Addr: Debug>,
L: Listener,
L::Addr: Debug,
M: for<'a> Service<IncomingStream<'a, L>, Error = Infallible, Response = S> + Send + 'static,
for<'a> <M as Service<IncomingStream<'a, L>>>::Future: Send,
S: Service<Request, Response = Response, Error = Infallible> + Clone + Send + 'static,
Expand Down

0 comments on commit 53c870c

Please sign in to comment.