From 061fcf880f87db32b9ecdf19789051b2965b414c Mon Sep 17 00:00:00 2001 From: Thibaut Vandervelden Date: Mon, 11 Oct 2021 10:56:54 +0200 Subject: [PATCH] Defmt for RawHardwareAddress --- src/wire/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wire/mod.rs b/src/wire/mod.rs index 6b331a1..cd02152 100644 --- a/src/wire/mod.rs +++ b/src/wire/mod.rs @@ -321,6 +321,7 @@ pub const MAX_HARDWARE_ADDRESS_LEN: usize = 8; /// Used to make NDISC parsing agnostic of the hardware medium in use. #[cfg(any(feature = "medium-ethernet", feature = "medium-ieee802154"))] #[derive(Debug, PartialEq, Eq, Clone, Copy)] +#[cfg_attr(feature = "defmt", derive(defmt::Format))] pub struct RawHardwareAddress { len: u8, data: [u8; MAX_HARDWARE_ADDRESS_LEN],