Skip to content

Commit

Permalink
fix clippy nag
Browse files Browse the repository at this point in the history
  • Loading branch information
daywalker90 committed Jun 29, 2024
1 parent 0a63a6f commit 54f918e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -846,11 +846,7 @@ async fn recent_invoices(
as f64)
/ 1_000.0)
.round() as u64,
description: if let Some(desc) = invoice.description {
desc
} else {
String::new()
},
description: invoice.description.unwrap_or_default(),
payment_hash: invoice.payment_hash.to_string(),
preimage: hex_encode(&invoice.payment_preimage.unwrap().to_vec()),
});
Expand Down

0 comments on commit 54f918e

Please sign in to comment.