derive(Clone) for several pub simple data structs.
[rust-lightning] / lightning / src / chain / channelmonitor.rs
index bb8d8c32de483215aee393202b7f9a74e4e29cb6..c3382caaea4f8f199b4bf40843788db682c5e6bf 100644 (file)
@@ -179,7 +179,7 @@ pub enum ChannelMonitorUpdateErr {
 pub struct MonitorUpdateError(pub &'static str);
 
 /// An event to be processed by the ChannelManager.
-#[derive(PartialEq)]
+#[derive(Clone, PartialEq)]
 pub enum MonitorEvent {
        /// A monitor event containing an HTLCUpdate.
        HTLCEvent(HTLCUpdate),