diff --git a/crates/matrix-sdk-sled/src/state_store.rs b/crates/matrix-sdk-sled/src/state_store.rs index 2dc161e65..3d95cc993 100644 --- a/crates/matrix-sdk-sled/src/state_store.rs +++ b/crates/matrix-sdk-sled/src/state_store.rs @@ -714,7 +714,7 @@ impl SledStore { let db = self.clone(); spawn_blocking(move || { stream::iter( - db.room_info.iter().map(move |r| db.deserialize_event(&r?.1).map_err(|e| e)), + db.room_info.iter().map(move |r| db.deserialize_event(&r?.1)), ) }) .await @@ -727,7 +727,7 @@ impl SledStore { stream::iter( db.stripped_room_infos .iter() - .map(move |r| db.deserialize_event(&r?.1).map_err(|e| e)), + .map(move |r| db.deserialize_event(&r?.1)), ) }) .await diff --git a/crates/matrix-sdk-store-encryption/src/lib.rs b/crates/matrix-sdk-store-encryption/src/lib.rs index 4ff7b6d4a..68612b1c5 100644 --- a/crates/matrix-sdk-store-encryption/src/lib.rs +++ b/crates/matrix-sdk-store-encryption/src/lib.rs @@ -322,7 +322,7 @@ impl StoreCipher { /// ``` pub fn encrypt_value_typed(&self, value: &impl Serialize) -> Result { let data = serde_json::to_vec(value)?; - Ok(self.encrypt_value_data(data)?) + self.encrypt_value_data(data) } /// Encrypt some data before it is inserted into the key/value store.