Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdivine committed Sep 17, 2024
1 parent e06f69d commit 0ce1807
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/guard/src/guards/icrc2_cycles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,14 @@ impl PaymentGuard for Icrc2CyclesPaymentGuard {
}
})?
.0
.map_err(|e| {
.map_err(|error| {
eprintln!(
"Failed to withdraw from ledger canister at {}: {e:?}",
"Failed to withdraw from ledger canister at {}: {error:?}",
self.ledger_canister_id
);
match e {
error => PaymentError::LedgerError {
ledger: self.ledger_canister_id,
error,
},
PaymentError::LedgerError {
ledger: self.ledger_canister_id,
error,
}
})
.map(|_| ())
Expand Down

0 comments on commit 0ce1807

Please sign in to comment.