crypto: Fix some clippy warnings.

master
Damir Jelić 2020-07-23 14:47:47 +02:00
parent ee51ed78be
commit a1edef0ed5
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ fn receive_mac_event(
} }
for (key_id, key_mac) in &event.content.mac { for (key_id, key_mac) in &event.content.mac {
let split: Vec<&str> = key_id.splitn(2, ":").collect(); let split: Vec<&str> = key_id.splitn(2, ':').collect();
if split.len() != 2 { if split.len() != 2 {
continue; continue;

View File

@ -48,7 +48,7 @@ impl From<AcceptEventContent> for AcceptedProtocols {
hash: content.hash, hash: content.hash,
key_agreement_protocol: content.key_agreement_protocol, key_agreement_protocol: content.key_agreement_protocol,
message_auth_code: content.message_authentication_code, message_auth_code: content.message_authentication_code,
short_auth_string: content.short_authentication_string.clone(), short_auth_string: content.short_authentication_string,
} }
} }
} }