Skip to content

Commit 1f95b3e

Browse files
committed
f some moar derives
1 parent fbbd8d6 commit 1f95b3e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ type ShutdownResult = (Option<(OutPoint, ChannelMonitorUpdate)>, Vec<(HTLCSource
224224
/// channel_state lock. We then return the set of things that need to be done outside the lock in
225225
/// this struct and call handle_error!() on it.
226226
227+
#[derive(PartialEq)]
227228
struct MsgHandleErrInternal {
228229
err: msgs::LightningError,
229230
shutdown_finish: Option<(ShutdownResult, Option<msgs::ChannelUpdate>)>,

lightning/src/ln/msgs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ enum EncodingType {
681681
}
682682

683683
/// Used to put an error message in a LightningError
684-
#[derive(Clone, Debug)]
684+
#[derive(Clone, Debug, PartialEq)]
685685
pub enum ErrorAction {
686686
/// The peer took some action which made us think they were useless. Disconnect them.
687687
DisconnectPeer {
@@ -702,7 +702,7 @@ pub enum ErrorAction {
702702
}
703703

704704
/// An Err type for failure to process messages.
705-
#[derive(Clone, Debug)]
705+
#[derive(Clone, Debug, PartialEq)]
706706
pub struct LightningError {
707707
/// A human-readable message describing the error
708708
pub err: String,

0 commit comments

Comments
 (0)