From cffc3fc7956570c66bf1bd259a4f68a8ca02fe58 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 27 Mar 2023 03:33:06 +0200 Subject: Fix build with log. --- src/structs.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/structs.rs') diff --git a/src/structs.rs b/src/structs.rs index 41a340661..e16808f30 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -44,7 +44,7 @@ pub struct SharedMemLog { } impl_bytes!(SharedMemLog); -#[derive(Clone, Copy)] +#[derive(Debug, Clone, Copy)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] #[repr(C)] pub struct SdpcmHeader { @@ -67,7 +67,7 @@ pub struct SdpcmHeader { } impl_bytes!(SdpcmHeader); -#[derive(Clone, Copy)] +#[derive(Debug, Clone, Copy)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] #[repr(C)] pub struct CdcHeader { @@ -82,7 +82,7 @@ impl_bytes!(CdcHeader); pub const BDC_VERSION: u8 = 2; pub const BDC_VERSION_SHIFT: u8 = 4; -#[derive(Clone, Copy)] +#[derive(Debug, Clone, Copy)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] #[repr(C)] pub struct BcdHeader { @@ -129,7 +129,7 @@ impl EventHeader { } } -#[derive(Clone, Copy)] +#[derive(Debug, Clone, Copy)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] #[repr(C)] pub struct EventMessage { -- cgit