Rename error type

This commit is contained in:
David Pedersen
2021-05-31 20:53:03 +02:00
parent d33be9683c
commit 19cbece1dc
3 changed files with 11 additions and 12 deletions
+2 -2
View File
@@ -381,7 +381,7 @@ where
#[inline]
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
self.inner.poll_ready(cx).map_err(Error::from_service_error)
self.inner.poll_ready(cx).map_err(Error::from)
}
#[inline]
@@ -409,7 +409,7 @@ impl<B> Future for BoxServiceTreeResponseFuture<B> {
self.project()
.inner
.poll(cx)
.map_err(Error::from_service_error)
.map_err(Error::from)
}
}