Make the custom message traits cloneable as they're deep in nested structs
[rust-lightning] / lightning / src / onion_message / functional_tests.rs
index c2d90ad60f91e250790e040020209e6682c0d231..1fc96d05185d90170552c713edc8b09f7f8f012d 100644 (file)
@@ -373,6 +373,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 {