mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-05 14:35:20 -04:00
Fix some clippy warnings
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user