Make the custom message traits cloneable as they're deep in nested structs
[rust-lightning] / lightning / src / onion_message / functional_tests.rs
index 3947e1531cc600a35c8962ca6f81ef76a456ea67..f1246531ab0630d8464c357c174628f69f34e2fc 100644 (file)
@@ -427,7 +427,7 @@ fn reply_path() {
 fn invalid_custom_message_type() {
        let nodes = create_nodes(2);
 
-       #[derive(Debug)]
+       #[derive(Debug, Clone)]
        struct InvalidCustomMessage{}
        impl OnionMessageContents for InvalidCustomMessage {
                fn tlv_type(&self) -> u64 {