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 12:37:05 +00:00
committed by GitHub
parent 2b6dba49cb
commit affab9b4ec
+1 -1
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))))
}
}