Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Dec 25, 2023
1 parent d8a1161 commit 8137ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invoice/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl FromStr for RgbInvoice {
.as_str()
.split_once('+')
.map(|(a, b)| (Some(a), Some(b)))
.unwrap_or((Some(&assignment.as_str()), None));
.unwrap_or((Some(assignment.as_str()), None));
// TODO: support other state types
let (beneficiary_str, value) = match (amount, beneficiary) {
(Some(a), Some(b)) => (b, InvoiceState::Amount(a.parse::<u64>()?)),
Expand Down

0 comments on commit 8137ca4

Please sign in to comment.