X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Fatomic_counter.rs;h=d2e01411313d3c18c6dc7720c7cf68b0d0866e6a;hb=bedc2c64fcfe5fa5f85ded630e9ed2eb3c3651eb;hp=81cc1f496c36472d407964fc3a47ef07511fd239;hpb=df8bde9b2efdd12dcb5a4b8d5d5d2507af402598;p=rust-lightning diff --git a/lightning/src/util/atomic_counter.rs b/lightning/src/util/atomic_counter.rs index 81cc1f49..d2e01411 100644 --- a/lightning/src/util/atomic_counter.rs +++ b/lightning/src/util/atomic_counter.rs @@ -5,6 +5,7 @@ compile_error!("We need at least 32-bit pointers for atomic counter (and to have use core::sync::atomic::{AtomicUsize, Ordering}; +#[derive(Debug)] pub(crate) struct AtomicCounter { // Usize needs to be at least 32 bits to avoid overflowing both low and high. If usize is 64 // bits we will never realistically count into high: