Fix some clippy warnings

This commit is contained in:
Damir Jelić
2022-08-15 16:28:01 +02:00
parent 1e451a92e0
commit 5768188da8
2 changed files with 2 additions and 2 deletions

View File

@@ -975,7 +975,7 @@ impl GossipMachine {
algorithm: EventEncryptionAlgorithm,
) -> Result<Option<InboundGroupSession>, CryptoStoreError> {
if let Some(info) = self.get_key_info(content).await? {
self.accept_forwarded_room_key(&info, &sender, sender_key, algorithm, content).await
self.accept_forwarded_room_key(&info, sender, sender_key, algorithm, content).await
} else {
warn!(
sender = %sender,

View File

@@ -173,7 +173,7 @@ impl InboundGroupSession {
algorithm: &EventEncryptionAlgorithm,
content: &ForwardedMegolmV1AesSha2Content,
) -> Result<Self, SessionCreationError> {
let config = OutboundGroupSession::session_config(&algorithm)?;
let config = OutboundGroupSession::session_config(algorithm)?;
let session = InnerSession::import(&content.session_key, config);