diff options
Diffstat (limited to 'src/api/helpers.rs')
-rw-r--r-- | src/api/helpers.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/helpers.rs b/src/api/helpers.rs index 19018151..f4d91788 100644 --- a/src/api/helpers.rs +++ b/src/api/helpers.rs @@ -2,13 +2,13 @@ use std::convert::Infallible; use std::net::SocketAddr; use hyper::{Body, Response}; -use garage_util::error::Error; +use garage_util::error::Error as GarageError; pub trait InfallibleResult { fn make_infallible(self) -> Result<Response<Body>, Infallible>; } -impl InfallibleResult for Result<Response<Body>, Error> { +impl InfallibleResult for Result<Response<Body>, GarageError> { fn make_infallible(self) -> Result<Response<Body>, Infallible> { match self { Ok(x) => { |