Skip to content

Commit a87f381

Browse files
authored
Merge pull request #2594 from benthecarman/debug-monitor-update-id
Implement Debug for MonitorUpdateId
2 parents a37a16a + 66821a9 commit a87f381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/chain/chainmonitor.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ use core::ops::Deref;
4747
use core::sync::atomic::{AtomicUsize, Ordering};
4848
use bitcoin::secp256k1::PublicKey;
4949

50-
#[derive(Clone, Copy, Hash, PartialEq, Eq)]
50+
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)]
5151
/// A specific update's ID stored in a `MonitorUpdateId`, separated out to make the contents
5252
/// entirely opaque.
5353
enum UpdateOrigin {
@@ -61,7 +61,7 @@ enum UpdateOrigin {
6161
}
6262

6363
/// An opaque identifier describing a specific [`Persist`] method call.
64-
#[derive(Clone, Copy, Hash, PartialEq, Eq)]
64+
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)]
6565
pub struct MonitorUpdateId {
6666
contents: UpdateOrigin,
6767
}

0 commit comments

Comments
 (0)