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:
david-perez 2021-11-30 13:37:05 +01:00 committed by GitHub
parent 2b6dba49cb
commit affab9b4ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,6 @@ impl<B> RouterFuture<B> {
}
pub(super) fn from_response(response: Response<BoxBody>) -> Self {
RouterFuture::new(Either::Right(ready(Ok(response))))
Self::new(Either::Right(ready(Ok(response))))
}
}