A little bit of cleanup

This commit is contained in:
Jonas Platte
2023-05-08 13:57:21 +02:00
committed by Jonas Platte
parent a8fb54ee67
commit c3d7a0704a
3 changed files with 7 additions and 9 deletions

View File

@@ -427,7 +427,7 @@ impl BaseClient {
}
}
Err(e) => {
warn!("Error deserializing event {:?}", e);
warn!("Error deserializing event {e:?}");
}
}

View File

@@ -733,16 +733,14 @@ impl GossipMachine {
room_id: &RoomId,
event: &EncryptedEvent,
) -> Result<bool, CryptoStoreError> {
Ok(if let Some(info) = event.room_key_info(room_id).map(|i| i.into()) {
if let Some(info) = event.room_key_info(room_id).map(|i| i.into()) {
if self.should_request_key(&info).await? {
self.request_key_helper(info).await?;
true
} else {
false
return Ok(true);
}
} else {
false
})
}
Ok(false)
}
/// Save an outgoing key info.

View File

@@ -413,7 +413,7 @@ impl Store {
self.inner.identity.lock().await.reset().await;
}
/// PrivateCrossSigningIdentity associated with this store
/// PrivateCrossSigningIdentity associated with this store
pub(crate) fn private_identity(&self) -> Arc<Mutex<PrivateCrossSigningIdentity>> {
self.inner.identity.clone()
}