Skip to content

Commit ce8c3c9

Browse files
committed
Derive Debug for a few types
Found by clippy.
1 parent 2f19aa7 commit ce8c3c9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/context/internal_nostd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ mod self_contained_context {
1717
const MAX_PREALLOC_SIZE: usize = 16; // measured at 208 bytes on Andrew's 64-bit system
1818

1919
/// A secp256k1 context object which can be allocated on the stack or in static storage.
20+
#[derive(Debug)]
2021
pub struct SelfContainedContext(
2122
[MaybeUninit<AlignedType>; MAX_PREALLOC_SIZE],
2223
Option<NonNull<ffi::Context>>,

src/context/spinlock.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const MAX_SPINLOCK_ATTEMPTS: usize = 128;
2323
// new stack-local context object if we are unable to obtain a lock on the
2424
// global one. This is slow and loses the defense-in-depth "rerandomization"
2525
// anti-sidechannel measure, but it is better than deadlocking..
26+
#[derive(Debug)]
2627
pub struct SpinLock<T> {
2728
flag: AtomicBool,
2829
// Invariant: if this is non-None, then the store is valid and can be
@@ -83,6 +84,7 @@ impl<T> SpinLock<T> {
8384
}
8485

8586
/// Drops the lock when it goes out of scope.
87+
#[derive(Debug)]
8688
pub struct SpinLockGuard<'a, T> {
8789
lock: &'a SpinLock<T>,
8890
}

0 commit comments

Comments
 (0)