diff options
Diffstat (limited to 'src/api/k2v/error.rs')
-rw-r--r-- | src/api/k2v/error.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/k2v/error.rs b/src/api/k2v/error.rs index 9263d9be..4c55d8b5 100644 --- a/src/api/k2v/error.rs +++ b/src/api/k2v/error.rs @@ -59,9 +59,7 @@ impl From<HelperError> for Error { match err { HelperError::Internal(i) => Self::Common(CommonError::InternalError(i)), HelperError::BadRequest(b) => Self::Common(CommonError::BadRequest(b)), - HelperError::InvalidBucketName(n) => { - Self::Common(CommonError::InvalidBucketName(n)) - } + HelperError::InvalidBucketName(n) => Self::Common(CommonError::InvalidBucketName(n)), HelperError::NoSuchBucket(n) => Self::Common(CommonError::NoSuchBucket(n)), e => Self::Common(CommonError::BadRequest(format!("{}", e))), } |