From: Matt Corallo Date: Sat, 13 Mar 2021 02:30:26 +0000 (-0500) Subject: Add `Debug` to derive list in MessageSendEvent X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=388222dac77dbbb85354d962d9886ed411983547;p=rust-lightning Add `Debug` to derive list in MessageSendEvent It can be quite useful in debugging, and potentially also so for users. --- diff --git a/lightning/src/util/events.rs b/lightning/src/util/events.rs index 271b6ddd1..118503c04 100644 --- a/lightning/src/util/events.rs +++ b/lightning/src/util/events.rs @@ -228,7 +228,7 @@ impl MaybeReadable for Event { /// An event generated by ChannelManager which indicates a message should be sent to a peer (or /// broadcast to most peers). /// These events are handled by PeerManager::process_events if you are using a PeerManager. -#[derive(Clone)] +#[derive(Clone, Debug)] pub enum MessageSendEvent { /// Used to indicate that we've accepted a channel open and should send the accept_channel /// message provided to the given peer.