mirror of
https://github.com/tokio-rs/axum.git
synced 2025-01-03 17:52:18 +01: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:
parent
2b6dba49cb
commit
affab9b4ec
1 changed files with 1 additions and 1 deletions
|
@ -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))))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue