Skip to content

Commit 82d8c2c

Browse files
committed
Remove unnecessary destructure
1 parent 414fbee commit 82d8c2c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lightning/src/offers/invoice.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,12 +1236,7 @@ impl TryFrom<Vec<u8>> for UnsignedBolt12Invoice {
12361236
fn try_from(bytes: Vec<u8>) -> Result<Self, Self::Error> {
12371237
let invoice = ParsedMessage::<PartialInvoiceTlvStream>::try_from(bytes)?;
12381238
let ParsedMessage { mut bytes, tlv_stream } = invoice;
1239-
let (
1240-
payer_tlv_stream, offer_tlv_stream, invoice_request_tlv_stream, invoice_tlv_stream,
1241-
) = tlv_stream;
1242-
let contents = InvoiceContents::try_from(
1243-
(payer_tlv_stream, offer_tlv_stream, invoice_request_tlv_stream, invoice_tlv_stream)
1244-
)?;
1239+
let contents = InvoiceContents::try_from(tlv_stream)?;
12451240

12461241
let tagged_hash = TaggedHash::from_valid_tlv_stream_bytes(SIGNATURE_TAG, &bytes);
12471242

0 commit comments

Comments
 (0)