Implement Debug for EventView and MessageView

This commit is contained in:
Sebastian Dröge 2019-01-22 16:55:59 +02:00
parent ad24ab9638
commit cc3c3876ab
2 changed files with 4 additions and 0 deletions

View file

@ -458,6 +458,7 @@ impl fmt::Debug for EventRef {
}
}
#[derive(Debug)]
pub enum EventView<'a> {
FlushStart(FlushStart<'a>),
FlushStop(FlushStop<'a>),
@ -494,6 +495,7 @@ pub enum EventView<'a> {
macro_rules! declare_concrete_event(
($name:ident) => {
#[derive(Debug)]
pub struct $name<'a>(&'a EventRef);
impl<'a> Deref for $name<'a> {

View file

@ -355,6 +355,7 @@ impl fmt::Debug for MessageRef {
}
}
#[derive(Debug)]
pub enum MessageView<'a> {
Eos(Eos<'a>),
Error(Error<'a>),
@ -399,6 +400,7 @@ pub enum MessageView<'a> {
macro_rules! declare_concrete_message(
($name:ident) => {
#[derive(Debug)]
pub struct $name<'a>(&'a MessageRef);
impl<'a> Deref for $name<'a> {