From 38e9457d97f005d0044d94ae72ede2beed51b918 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Mon, 21 Oct 2024 12:15:24 -0500 Subject: [PATCH] Remove unnecessary destructure --- lightning/src/offers/invoice.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lightning/src/offers/invoice.rs b/lightning/src/offers/invoice.rs index 92b75baaf..0dfe49cec 100644 --- a/lightning/src/offers/invoice.rs +++ b/lightning/src/offers/invoice.rs @@ -1274,12 +1274,7 @@ impl TryFrom> for UnsignedBolt12Invoice { fn try_from(bytes: Vec) -> Result { let invoice = ParsedMessage::::try_from(bytes)?; let ParsedMessage { mut bytes, tlv_stream } = invoice; - let ( - payer_tlv_stream, offer_tlv_stream, invoice_request_tlv_stream, invoice_tlv_stream, - ) = tlv_stream; - let contents = InvoiceContents::try_from( - (payer_tlv_stream, offer_tlv_stream, invoice_request_tlv_stream, invoice_tlv_stream) - )?; + let contents = InvoiceContents::try_from(tlv_stream)?; let tagged_hash = TaggedHash::from_valid_tlv_stream_bytes(SIGNATURE_TAG, &bytes); -- 2.39.5