Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[rust][core] format blob JSON error mapping

Neeraj Guptae31ff6f99f0f
diff --git a/rust/core/src/crypto/impl_pure/blob.rs b/rust/core/src/crypto/impl_pure/blob.rs
index 0facb83c7c..0670a2f427 100644
--- a/rust/core/src/crypto/impl_pure/blob.rs
+++ b/rust/core/src/crypto/impl_pure/blob.rs
@@ -189,10 +189,7 @@ pub fn decrypt_json_combined<T: serde::de::DeserializeOwned>(
) -> Result<T> {
let plaintext = decrypt_combined(combined, key)?;
serde_json::from_slice(&plaintext).map_err(|e| {
- CryptoError::InvalidKeyDerivationParams(format!(
- "JSON deserialization failed: {}",
- e
- ))
+ CryptoError::InvalidKeyDerivationParams(format!("JSON deserialization failed: {}", e))
})
}