cargo fmt

This commit is contained in:
Alex Auvolat
2023-05-16 18:40:27 +02:00
parent 472444ed8e
commit 16f2a32bb7
2 changed files with 8 additions and 4 deletions
+5 -3
View File
@@ -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,
})
}