DRY up InvoiceFields construction
[rust-lightning] / lightning / src / offers / merkle.rs
index f682746742050749463c181340fdad72f3d2d554..3b05899a8f59214872a1075179fc9428b48412fa 100644 (file)
@@ -143,6 +143,7 @@ fn tagged_branch_hash_from_engine(
 
 /// [`Iterator`] over a sequence of bytes yielding [`TlvRecord`]s. The input is assumed to be a
 /// well-formed TLV stream.
+#[derive(Clone)]
 pub(super) struct TlvStream<'a> {
        data: io::Cursor<&'a [u8]>,
 }