diff options
author | Alex Auvolat <alex@adnab.me> | 2022-05-18 00:27:57 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-05-18 00:27:57 +0200 |
commit | 926b3c0fadcd10b4ef75c7d8995170ac3d16ca89 (patch) | |
tree | 282fafdc0a16d451cf448d5ff443fb6131f4397e /src/api/signature | |
parent | dcfa408887b588e9f9eee608c1358a5a81330e9e (diff) | |
download | garage-926b3c0fadcd10b4ef75c7d8995170ac3d16ca89.tar.gz garage-926b3c0fadcd10b4ef75c7d8995170ac3d16ca89.zip |
Rename error varian for Clippy
Diffstat (limited to 'src/api/signature')
-rw-r--r-- | src/api/signature/error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/signature/error.rs b/src/api/signature/error.rs index 3ef5cdcd..f5a067bd 100644 --- a/src/api/signature/error.rs +++ b/src/api/signature/error.rs @@ -8,7 +8,7 @@ pub use crate::common_error::{CommonErrorDerivative, OkOrBadRequest, OkOrInterna pub enum Error { #[error(display = "{}", _0)] /// Error from common error - CommonError(CommonError), + Common(CommonError), /// Authorization Header Malformed #[error(display = "Authorization header malformed, expected scope: {}", _0)] @@ -29,7 +29,7 @@ where CommonError: From<T>, { fn from(err: T) -> Self { - Error::CommonError(CommonError::from(err)) + Error::Common(CommonError::from(err)) } } |