Make the custom message traits cloneable as they're deep in nested structs
[rust-lightning] / lightning / src / onion_message / packet.rs
index 3bc42f504229e392064c58f38ee13efe3e18bb0f..440d50069f9bcd68eff358500df67678c4e3b7f9 100644 (file)
@@ -134,7 +134,7 @@ impl<T: CustomOnionMessageContents> Writeable for OnionMessageContents<T> {
 }
 
 /// The contents of a custom onion message.
-pub trait CustomOnionMessageContents: Writeable {
+pub trait CustomOnionMessageContents: Writeable + Clone {
        /// Returns the TLV type identifying the message contents. MUST be >= 64.
        fn tlv_type(&self) -> u64;
 }