crypto: Remove an unneeded mutable borrow.

master
Damir Jelić 2020-09-29 14:33:07 +02:00
parent 8fe1eda169
commit 58aef51770
1 changed files with 3 additions and 5 deletions

View File

@ -1048,7 +1048,7 @@ mod test {
.await .await
.unwrap(); .unwrap();
let mut event = ToDeviceEvent { let event = ToDeviceEvent {
sender: bob_id(), sender: bob_id(),
content, content,
}; };
@ -1065,10 +1065,8 @@ mod test {
.unwrap() .unwrap()
.is_none()); .is_none());
let (decrypted, sender_key, _) = alice_account let (decrypted, sender_key, _) =
.decrypt_to_device_event(&mut event) alice_account.decrypt_to_device_event(&event).await.unwrap();
.await
.unwrap();
if let AnyToDeviceEvent::ForwardedRoomKey(mut e) = decrypted.deserialize().unwrap() { if let AnyToDeviceEvent::ForwardedRoomKey(mut e) = decrypted.deserialize().unwrap() {
alice_machine alice_machine