Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Nov 5, 2024
1 parent 3545d39 commit cc9dabb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
16 changes: 6 additions & 10 deletions crates/cdk-integration-tests/tests/fake_wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,16 +368,12 @@ async fn test_fake_melt_change_in_quote() -> Result<()> {
assert!(melt_response.change.is_some());

let check = wallet.melt_quote_status(&melt_quote.id).await?;
let mut melt_change = melt_response.change.unwrap();
melt_change.sort_by(|a, b| a.amount.cmp(&b.amount));

assert_eq!(
melt_response
.change
.unwrap()
.sort_by(|a, b| a.amount.cmp(&b.amount)),
check
.change
.unwrap()
.sort_by(|a, b| a.amount.cmp(&b.amount))
);
let mut check = check.change.unwrap();
check.sort_by(|a, b| a.amount.cmp(&b.amount));

assert_eq!(melt_change, check);
Ok(())
}
2 changes: 1 addition & 1 deletion crates/cdk/src/mint/mint_nut04.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl Mint {
return Err(Error::MintingDisabled);
}

match nut04.get_settings(&unit, &PaymentMethod::Bolt11) {
match nut04.get_settings(unit, &PaymentMethod::Bolt11) {
Some(settings) => {
if settings
.max_amount
Expand Down

0 comments on commit cc9dabb

Please sign in to comment.