Skip to content

Commit

Permalink
Fix some clippy warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
  • Loading branch information
Patrik-Stas committed Oct 22, 2023
1 parent 0f39da3 commit 4750b50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion aries_vcx/src/errors/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ fn try_capture_backtrace() -> Option<String> {
filtered_backtrace.push('\n');
}
}
return Some(filtered_backtrace);
Some(filtered_backtrace)
}
#[cfg(not(feature = "backtrace_errors"))]
None
Expand Down
7 changes: 1 addition & 6 deletions aries_vcx/src/handlers/connection/mediated_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}))
}

Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/protocols/issuance/issuer/state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4750b50

Please sign in to comment.