Skip to content

Commit 996ff0b

Browse files
committed
f: give up on attempting collect removal
1 parent fd6c1f4 commit 996ff0b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/ln/msgs.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2781,13 +2781,12 @@ impl Writeable for OutboundTrampolinePayload {
27812781
p.inner_blinded_path().encode().into_iter().chain(p.payinfo.encode())
27822782
}).collect();
27832783
let blinded_path_tlv = (22, blinded_path_value);
2784-
let custom_tlvs: Vec<&(u64, Vec<u8>)> = core::iter::once(blinded_path_tlv).collect();
27852784

27862785
_encode_varint_length_prefixed_tlv!(w, {
27872786
(2, HighZeroBytesDroppedBigSize(*amt_to_forward), required),
27882787
(4, HighZeroBytesDroppedBigSize(*outgoing_cltv_value), required),
27892788
(21, invoice_features.as_ref().map(|m| WithoutLength(m)), option)
2790-
}, custom_tlvs.iter());
2789+
}, [&blinded_path_tlv]);
27912790
},
27922791
}
27932792
Ok(())

0 commit comments

Comments
 (0)