Skip to content

Commit ee12742

Browse files
committed
add derive debug for consumer and producer
1 parent d9f647f commit ee12742

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/bbbuffer.rs

+2
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ impl<const A: usize> BBBuffer<A> {
309309
///
310310
/// See [this github issue](https://github.com/jamesmunns/bbqueue/issues/38) for a
311311
/// discussion of grant methods that could be added in the future.
312+
#[derive(Debug)]
312313
pub struct Producer<'a, const N: usize> {
313314
bbq: NonNull<BBBuffer<N>>,
314315
pd: PhantomData<&'a ()>,
@@ -514,6 +515,7 @@ impl<'a, const N: usize> Producer<'a, N> {
514515
}
515516

516517
/// `Consumer` is the primary interface for reading data from a `BBBuffer`.
518+
#[derive(Debug)]
517519
pub struct Consumer<'a, const N: usize> {
518520
bbq: NonNull<BBBuffer<N>>,
519521
pd: PhantomData<&'a ()>,

0 commit comments

Comments
 (0)