From: benthecarman Date: Sun, 24 Sep 2023 05:34:27 +0000 (-0500) Subject: Implement Debug for MonitorUpdateId X-Git-Tag: v0.0.117-alpha2~9^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=66821a9e72bfbdbf6e1790dc676dcd3dbbcd5995;p=rust-lightning Implement Debug for MonitorUpdateId --- diff --git a/lightning/src/chain/chainmonitor.rs b/lightning/src/chain/chainmonitor.rs index b6909cb3e..a49b3b426 100644 --- a/lightning/src/chain/chainmonitor.rs +++ b/lightning/src/chain/chainmonitor.rs @@ -47,7 +47,7 @@ use core::ops::Deref; use core::sync::atomic::{AtomicUsize, Ordering}; use bitcoin::secp256k1::PublicKey; -#[derive(Clone, Copy, Hash, PartialEq, Eq)] +#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)] /// A specific update's ID stored in a `MonitorUpdateId`, separated out to make the contents /// entirely opaque. enum UpdateOrigin { @@ -61,7 +61,7 @@ enum UpdateOrigin { } /// An opaque identifier describing a specific [`Persist`] method call. -#[derive(Clone, Copy, Hash, PartialEq, Eq)] +#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)] pub struct MonitorUpdateId { contents: UpdateOrigin, }