X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Fatomic_counter.rs;h=d2e01411313d3c18c6dc7720c7cf68b0d0866e6a;hb=61cf75265ebff493af5a04550a5ff8b250f3b2f6;hp=81cc1f496c36472d407964fc3a47ef07511fd239;hpb=081ce7c843713a42803097a6d2dcf3631778beda;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: