crypto: Remove an unneeded mutable borrow.
parent
8fe1eda169
commit
58aef51770
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue