From 173e36773b84c5e1fc295c25239598d9a359bbf9 Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Sun, 31 Dec 2023 20:01:29 +0000 Subject: [PATCH] chore: clippy --- crates/cashu-sdk/src/wallet.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/cashu-sdk/src/wallet.rs b/crates/cashu-sdk/src/wallet.rs index 40922b18..3a25fd3c 100644 --- a/crates/cashu-sdk/src/wallet.rs +++ b/crates/cashu-sdk/src/wallet.rs @@ -173,13 +173,12 @@ impl Wallet { } } - return None; + None } fn active_keys(&self, mint_url: &UncheckedUrl, unit: &CurrencyUnit) -> Option { self.active_mint_keyset(mint_url, unit) - .map(|id| self.mint_keys.get(&id)) - .flatten() + .and_then(|id| self.mint_keys.get(&id)) .cloned() } @@ -274,7 +273,7 @@ impl Wallet { swap_response.signatures, pre_swap.pre_mint_secrets.rs(), pre_swap.pre_mint_secrets.secrets(), - &keys.unwrap(), + keys.unwrap(), )?; proofs.push(p); }