aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/api/admin/error.rs4
-rw-r--r--src/api/k2v/error.rs4
-rw-r--r--src/api/s3/error.rs4
3 files changed, 3 insertions, 9 deletions
diff --git a/src/api/admin/error.rs b/src/api/admin/error.rs
index cc51807f..c4613cb3 100644
--- a/src/api/admin/error.rs
+++ b/src/api/admin/error.rs
@@ -45,9 +45,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)),
HelperError::NoSuchAccessKey(n) => Self::NoSuchAccessKey(n),
}
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))),
}
diff --git a/src/api/s3/error.rs b/src/api/s3/error.rs
index 60e2915c..ac632540 100644
--- a/src/api/s3/error.rs
+++ b/src/api/s3/error.rs
@@ -91,9 +91,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::bad_request(format!("{}", e)),
}