Skip to content

Commit

Permalink
add derive debug for consumer and producer
Browse files Browse the repository at this point in the history
  • Loading branch information
liamkinne authored and Sympatron committed Dec 9, 2024
1 parent 4a343f3 commit b0f4d58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/bbbuffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ impl<const A: usize> BBBuffer<A> {
///
/// See [this github issue](https://github.com/jamesmunns/bbqueue/issues/38) for a
/// discussion of grant methods that could be added in the future.
#[derive(Debug)]
pub struct Producer<'a, const N: usize> {
bbq: NonNull<BBBuffer<N>>,
pd: PhantomData<&'a ()>,
Expand Down Expand Up @@ -514,6 +515,7 @@ impl<'a, const N: usize> Producer<'a, N> {
}

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

0 comments on commit b0f4d58

Please sign in to comment.