From 4750b50f2b180543336bda9ec6ff489ff67dfd37 Mon Sep 17 00:00:00 2001 From: Patrik Stas Date: Sun, 22 Oct 2023 22:59:36 +0200 Subject: [PATCH] Fix some clippy warnings Signed-off-by: Patrik Stas --- aries_vcx/src/errors/error.rs | 2 +- aries_vcx/src/handlers/connection/mediated_connection.rs | 7 +------ aries_vcx/src/protocols/issuance/issuer/state_machine.rs | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/aries_vcx/src/errors/error.rs b/aries_vcx/src/errors/error.rs index 52cf7aaa53..fb6dc35da4 100644 --- a/aries_vcx/src/errors/error.rs +++ b/aries_vcx/src/errors/error.rs @@ -223,7 +223,7 @@ fn try_capture_backtrace() -> Option { filtered_backtrace.push('\n'); } } - return Some(filtered_backtrace); + Some(filtered_backtrace) } #[cfg(not(feature = "backtrace_errors"))] None diff --git a/aries_vcx/src/handlers/connection/mediated_connection.rs b/aries_vcx/src/handlers/connection/mediated_connection.rs index 896c36dbc0..83d8ce4338 100644 --- a/aries_vcx/src/handlers/connection/mediated_connection.rs +++ b/aries_vcx/src/handlers/connection/mediated_connection.rs @@ -934,12 +934,7 @@ impl MediatedConnection { ))?; let sender_vk = self.pairwise_info().pw_vk.clone(); Ok(Box::new(move |message: AriesMessage| { - Box::pin(send_message( - wallet, - sender_vk.clone(), - did_doc.clone(), - message, - )) + Box::pin(send_message(wallet, sender_vk.clone(), did_doc, message)) })) } diff --git a/aries_vcx/src/protocols/issuance/issuer/state_machine.rs b/aries_vcx/src/protocols/issuance/issuer/state_machine.rs index 352dd91afd..dd33d4899d 100644 --- a/aries_vcx/src/protocols/issuance/issuer/state_machine.rs +++ b/aries_vcx/src/protocols/issuance/issuer/state_machine.rs @@ -495,7 +495,7 @@ impl IssuerSM { verify_thread_id( &self.thread_id, &AriesMessage::CredentialIssuance(CredentialIssuance::V1(CredentialIssuanceV1::Ack( - ack.clone(), + ack, ))), )?; let state = match self.state {