mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-16 12:43:01 -04:00
fixing clippy lints
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -322,7 +322,7 @@ impl StoreCipher {
|
||||
/// ```
|
||||
pub fn encrypt_value_typed(&self, value: &impl Serialize) -> Result<EncryptedValue, Error> {
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user