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