crypto: Fix some clippy warnings.
parent
ee51ed78be
commit
a1edef0ed5
|
@ -134,7 +134,7 @@ fn receive_mac_event(
|
|||
}
|
||||
|
||||
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 {
|
||||
continue;
|
||||
|
|
|
@ -48,7 +48,7 @@ impl From<AcceptEventContent> for AcceptedProtocols {
|
|||
hash: content.hash,
|
||||
key_agreement_protocol: content.key_agreement_protocol,
|
||||
message_auth_code: content.message_authentication_code,
|
||||
short_auth_string: content.short_authentication_string.clone(),
|
||||
short_auth_string: content.short_authentication_string,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue