diff options
author | Alex Auvolat <alex@adnab.me> | 2022-05-18 00:32:51 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-05-18 00:32:51 +0200 |
commit | 30e393b439e733107755517a68ebe681dd64a2d5 (patch) | |
tree | 553ae6d61b5ff8c1eb8f1bd792e98c3bd7b2f7dd /src/api/k2v | |
parent | 926b3c0fadcd10b4ef75c7d8995170ac3d16ca89 (diff) | |
download | garage-30e393b439e733107755517a68ebe681dd64a2d5.tar.gz garage-30e393b439e733107755517a68ebe681dd64a2d5.zip |
Fix fmt
Diffstat (limited to 'src/api/k2v')
-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))), } |