aboutsummaryrefslogtreecommitdiff
path: root/src/k2v-client/lib.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-05-16 18:40:27 +0200
committerAlex Auvolat <alex@adnab.me>2023-05-16 19:46:57 +0200
commit16f2a32bb78cdc0d9cee9806c04065af845d0dff (patch)
treec9664138a33fd046eae926de985ec3f4cd54b5d4 /src/k2v-client/lib.rs
parent472444ed8ec63200045ff2d366f8b11d1745475f (diff)
downloadgarage-16f2a32bb78cdc0d9cee9806c04065af845d0dff.tar.gz
garage-16f2a32bb78cdc0d9cee9806c04065af845d0dff.zip
Diffstat (limited to 'src/k2v-client/lib.rs')
-rw-r--r--src/k2v-client/lib.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/k2v-client/lib.rs b/src/k2v-client/lib.rs
index 548838f8..3d1b5461 100644
--- a/src/k2v-client/lib.rs
+++ b/src/k2v-client/lib.rs
@@ -483,9 +483,11 @@ impl<'de> Deserialize<'de> for K2vValue {
{
let val: Option<&str> = Option::deserialize(d)?;
Ok(match val {
- Some(s) => {
- K2vValue::Value(BASE64_STANDARD.decode(s).map_err(|_| DeError::custom("invalid base64"))?)
- }
+ Some(s) => K2vValue::Value(
+ BASE64_STANDARD
+ .decode(s)
+ .map_err(|_| DeError::custom("invalid base64"))?,
+ ),
None => K2vValue::Tombstone,
})
}