From 46c165764331832f44d45951a27fe36e89000483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 24 Jul 2020 16:04:47 +0200 Subject: [PATCH] crypto: Fix some clippy warnings. --- matrix_sdk_crypto/src/verification/sas.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix_sdk_crypto/src/verification/sas.rs b/matrix_sdk_crypto/src/verification/sas.rs index 5c42453e..f101f1a5 100644 --- a/matrix_sdk_crypto/src/verification/sas.rs +++ b/matrix_sdk_crypto/src/verification/sas.rs @@ -914,9 +914,9 @@ mod test { let bob_device = Device::from_account(&bob).await; let (alice, content) = Sas::start(alice, bob_device); - let mut event = wrap_to_device_event(alice.user_id(), content); + let event = wrap_to_device_event(alice.user_id(), content); - let bob = Sas::from_start_event(bob, alice_device, &mut event); + let bob = Sas::from_start_event(bob, alice_device, &event); let event = wrap_to_device_event(bob.user_id(), bob.accept().unwrap()); let content = alice.receive_event(&mut AnyToDeviceEvent::KeyVerificationAccept(event));