Skip to content

Commit 38e9457

Browse files
committed
Remove unnecessary destructure
1 parent bcc7c1d commit 38e9457

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
@@ -1274,12 +1274,7 @@ impl TryFrom<Vec<u8>> for UnsignedBolt12Invoice {
12741274
fn try_from(bytes: Vec<u8>) -> Result<Self, Self::Error> {
12751275
let invoice = ParsedMessage::<PartialInvoiceTlvStream>::try_from(bytes)?;
12761276
let ParsedMessage { mut bytes, tlv_stream } = invoice;
1277-
let (
1278-
payer_tlv_stream, offer_tlv_stream, invoice_request_tlv_stream, invoice_tlv_stream,
1279-
) = tlv_stream;
1280-
let contents = InvoiceContents::try_from(
1281-
(payer_tlv_stream, offer_tlv_stream, invoice_request_tlv_stream, invoice_tlv_stream)
1282-
)?;
1277+
let contents = InvoiceContents::try_from(tlv_stream)?;
12831278

12841279
let tagged_hash = TaggedHash::from_valid_tlv_stream_bytes(SIGNATURE_TAG, &bytes);
12851280

0 commit comments

Comments
 (0)