From c3c642871792d0d6d7bc76ad03cc83e38e844674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 21 Aug 2020 16:31:02 +0200 Subject: [PATCH] crypto: Remove some clippy warnings. --- matrix_sdk_crypto/src/verification/machine.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matrix_sdk_crypto/src/verification/machine.rs b/matrix_sdk_crypto/src/verification/machine.rs index 3590dced..d71e85d8 100644 --- a/matrix_sdk_crypto/src/verification/machine.rs +++ b/matrix_sdk_crypto/src/verification/machine.rs @@ -85,7 +85,7 @@ impl VerificationMachine { let (request_id, request) = content_to_request(recipient, recipient_device, content); let request = OutgoingRequest { - request_id: request_id.clone(), + request_id, request: Arc::new(request.into()), }; @@ -117,7 +117,7 @@ impl VerificationMachine { for sas in self.verifications.iter() { if let Some(r) = sas.cancel_if_timed_out() { self.outgoing_to_device_messages.insert( - r.0.clone(), + r.0, OutgoingRequest { request_id: r.0, request: Arc::new(r.1.into()), @@ -192,7 +192,7 @@ impl VerificationMachine { if s.is_done() && !s.mark_device_as_verified().await? { if let Some(r) = s.cancel() { self.outgoing_to_device_messages.insert( - r.0.clone(), + r.0, OutgoingRequest { request_id: r.0, request: Arc::new(r.1.into()),