Defmt for RawHardwareAddress

master
Thibaut Vandervelden 2021-10-11 10:56:54 +02:00 committed by Dario Nieuwenhuis
parent 6e63433ab3
commit 061fcf880f
1 changed files with 1 additions and 0 deletions

View File

@ -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],