From affab9b4ecffd80fdafb313228e2c11c070e4560 Mon Sep 17 00:00:00 2001 From: david-perez Date: Tue, 30 Nov 2021 13:37:05 +0100 Subject: [PATCH] Use `Self` in `RouterFuture`'s `impl` block (#578) For consistency with the other method and the rest of the codebase. --- axum/src/routing/future.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))) } }