Skip to content

Commit

Permalink
Remove unnecessary move in mock closure
Browse files Browse the repository at this point in the history
  • Loading branch information
akarabashov committed Mar 18, 2024
1 parent a20d770 commit 267b581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vdr/src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ pub mod test {
client_mock
.expect_submit_transaction()
.with(eq(transaction.encode().unwrap()))
.returning(move |_| {
.returning(|_| {
Err(VdrError::ClientTransactionReverted(
encoded_error_message.to_string(),
))
Expand Down

0 comments on commit 267b581

Please sign in to comment.