From: Matt Corallo Date: Sat, 13 Mar 2021 02:30:26 +0000 (-0500) Subject: Add `Debug` to derive list in MessageSendEvent X-Git-Tag: v0.0.14~44^2~8 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=0ac839d8cd6362cc034a5e431d525dea28a75c2c;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.