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