mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +02:00
Use Self in RouterFuture's impl block (#578)
For consistency with the other method and the rest of the codebase.
This commit is contained in:
@@ -22,6 +22,6 @@ impl<B> RouterFuture<B> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub(super) fn from_response(response: Response<BoxBody>) -> Self {
|
pub(super) fn from_response(response: Response<BoxBody>) -> Self {
|
||||||
RouterFuture::new(Either::Right(ready(Ok(response))))
|
Self::new(Either::Right(ready(Ok(response))))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user