Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Dec 31, 2023
1 parent 1ebd2a4 commit 173e367
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/cashu-sdk/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,12 @@ impl<C: Client> Wallet<C> {
}
}

return None;
None
}

fn active_keys(&self, mint_url: &UncheckedUrl, unit: &CurrencyUnit) -> Option<Keys> {
self.active_mint_keyset(mint_url, unit)
.map(|id| self.mint_keys.get(&id))
.flatten()
.and_then(|id| self.mint_keys.get(&id))
.cloned()
}

Expand Down Expand Up @@ -274,7 +273,7 @@ impl<C: Client> Wallet<C> {
swap_response.signatures,
pre_swap.pre_mint_secrets.rs(),
pre_swap.pre_mint_secrets.secrets(),
&keys.unwrap(),
keys.unwrap(),
)?;
proofs.push(p);
}
Expand Down

0 comments on commit 173e367

Please sign in to comment.