diff --git a/axum/src/routing/future.rs b/axum/src/routing/future.rs index 1cd974ff..221fc887 100644 --- a/axum/src/routing/future.rs +++ b/axum/src/routing/future.rs @@ -22,6 +22,6 @@ impl RouterFuture { } pub(super) fn from_response(response: Response) -> Self { - RouterFuture::new(Either::Right(ready(Ok(response)))) + Self::new(Either::Right(ready(Ok(response)))) } }