forked from Deuxfleurs/garage
Fix fmt
This commit is contained in:
parent
926b3c0fad
commit
30e393b439
3 changed files with 3 additions and 9 deletions
|
@ -45,9 +45,7 @@ impl From<HelperError> for Error {
|
||||||
match err {
|
match err {
|
||||||
HelperError::Internal(i) => Self::Common(CommonError::InternalError(i)),
|
HelperError::Internal(i) => Self::Common(CommonError::InternalError(i)),
|
||||||
HelperError::BadRequest(b) => Self::Common(CommonError::BadRequest(b)),
|
HelperError::BadRequest(b) => Self::Common(CommonError::BadRequest(b)),
|
||||||
HelperError::InvalidBucketName(n) => {
|
HelperError::InvalidBucketName(n) => Self::Common(CommonError::InvalidBucketName(n)),
|
||||||
Self::Common(CommonError::InvalidBucketName(n))
|
|
||||||
}
|
|
||||||
HelperError::NoSuchBucket(n) => Self::Common(CommonError::NoSuchBucket(n)),
|
HelperError::NoSuchBucket(n) => Self::Common(CommonError::NoSuchBucket(n)),
|
||||||
HelperError::NoSuchAccessKey(n) => Self::NoSuchAccessKey(n),
|
HelperError::NoSuchAccessKey(n) => Self::NoSuchAccessKey(n),
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,9 +59,7 @@ impl From<HelperError> for Error {
|
||||||
match err {
|
match err {
|
||||||
HelperError::Internal(i) => Self::Common(CommonError::InternalError(i)),
|
HelperError::Internal(i) => Self::Common(CommonError::InternalError(i)),
|
||||||
HelperError::BadRequest(b) => Self::Common(CommonError::BadRequest(b)),
|
HelperError::BadRequest(b) => Self::Common(CommonError::BadRequest(b)),
|
||||||
HelperError::InvalidBucketName(n) => {
|
HelperError::InvalidBucketName(n) => Self::Common(CommonError::InvalidBucketName(n)),
|
||||||
Self::Common(CommonError::InvalidBucketName(n))
|
|
||||||
}
|
|
||||||
HelperError::NoSuchBucket(n) => Self::Common(CommonError::NoSuchBucket(n)),
|
HelperError::NoSuchBucket(n) => Self::Common(CommonError::NoSuchBucket(n)),
|
||||||
e => Self::Common(CommonError::BadRequest(format!("{}", e))),
|
e => Self::Common(CommonError::BadRequest(format!("{}", e))),
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,9 +91,7 @@ impl From<HelperError> for Error {
|
||||||
match err {
|
match err {
|
||||||
HelperError::Internal(i) => Self::Common(CommonError::InternalError(i)),
|
HelperError::Internal(i) => Self::Common(CommonError::InternalError(i)),
|
||||||
HelperError::BadRequest(b) => Self::Common(CommonError::BadRequest(b)),
|
HelperError::BadRequest(b) => Self::Common(CommonError::BadRequest(b)),
|
||||||
HelperError::InvalidBucketName(n) => {
|
HelperError::InvalidBucketName(n) => Self::Common(CommonError::InvalidBucketName(n)),
|
||||||
Self::Common(CommonError::InvalidBucketName(n))
|
|
||||||
}
|
|
||||||
HelperError::NoSuchBucket(n) => Self::Common(CommonError::NoSuchBucket(n)),
|
HelperError::NoSuchBucket(n) => Self::Common(CommonError::NoSuchBucket(n)),
|
||||||
e => Self::bad_request(format!("{}", e)),
|
e => Self::bad_request(format!("{}", e)),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue