Make the custom message traits cloneable as they're deep in nested structs
[rust-lightning] / lightning / src / onion_message / functional_tests.rs
index 991b4e9e7df7666eabca6273926702ea435d2a9b..286a5beeb49885c74c589e4703b23d7509e6c21c 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 {