Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Feb 13, 2024
1 parent 12e7cc2 commit f651a37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions waila/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mod nwa;
#[derive(Debug, Clone)]
pub enum PaymentParams<'a> {
OnChain(Address),
Bip21(UnifiedUri<'a>),
Bip21(Box<UnifiedUri<'a>>),
Bolt11(Bolt11Invoice),
Bolt12(Offer),
Bolt12Refund(Refund),
Expand Down Expand Up @@ -451,7 +451,7 @@ impl FromStr for PaymentParams<'_> {
Address::from_str(str)
.map(|a| PaymentParams::OnChain(a.assume_checked()))
.or_else(|_| Bolt11Invoice::from_str(str).map(PaymentParams::Bolt11))
.or_else(|_| UnifiedUri::from_str(str).map(PaymentParams::Bip21))
.or_else(|_| UnifiedUri::from_str(str).map(|u| PaymentParams::Bip21(Box::new(u))))
.or_else(|_| LightningAddress::from_str(str).map(PaymentParams::LightningAddress))
.or_else(|_| LnUrl::from_str(str).map(PaymentParams::LnUrl))
.or_else(|_| PublicKey::from_str(str).map(PaymentParams::NodePubkey))
Expand Down

0 comments on commit f651a37

Please sign in to comment.