From: Jeffrey Czyz Date: Mon, 21 Oct 2024 17:15:24 +0000 (-0500) Subject: Remove unnecessary destructure X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=38e9457d97f005d0044d94ae72ede2beed51b918;p=rust-lightning Remove unnecessary destructure --- 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);