mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 06:57:53 +01:00
Remove unnecessary destructure
This commit is contained in:
parent
bcc7c1dc1d
commit
38e9457d97
1 changed files with 1 additions and 6 deletions
|
@ -1274,12 +1274,7 @@ impl TryFrom<Vec<u8>> for UnsignedBolt12Invoice {
|
|||
fn try_from(bytes: Vec<u8>) -> Result<Self, Self::Error> {
|
||||
let invoice = ParsedMessage::<PartialInvoiceTlvStream>::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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue