From ca02cdf792d4aff16e2f265616bec5abdb3c7a1a Mon Sep 17 00:00:00 2001 From: xoviat Date: Mon, 17 Nov 2025 11:24:49 -0600 Subject: fmt --- embassy-stm32-wpan/src/mac/commands.rs | 4 ++-- embassy-stm32-wpan/src/mac/indications.rs | 6 +++--- embassy-stm32-wpan/src/mac/typedefs.rs | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/embassy-stm32-wpan/src/mac/commands.rs b/embassy-stm32-wpan/src/mac/commands.rs index e0bc50e2a..a3a40f377 100644 --- a/embassy-stm32-wpan/src/mac/commands.rs +++ b/embassy-stm32-wpan/src/mac/commands.rs @@ -2,14 +2,14 @@ use core::{mem, slice}; +use smoltcp::wire::ieee802154::Frame; + use super::opcodes::OpcodeM4ToM0; use super::typedefs::{ AddressMode, Capabilities, DisassociationReason, GtsCharacteristics, KeyIdMode, MacAddress, MacChannel, MacStatus, PanId, PibId, ScanType, SecurityLevel, }; -use smoltcp::wire::ieee802154::Frame; - pub trait MacCommand: Sized { const OPCODE: OpcodeM4ToM0; diff --git a/embassy-stm32-wpan/src/mac/indications.rs b/embassy-stm32-wpan/src/mac/indications.rs index 45f79ac5b..05869ba2a 100644 --- a/embassy-stm32-wpan/src/mac/indications.rs +++ b/embassy-stm32-wpan/src/mac/indications.rs @@ -1,5 +1,8 @@ use core::slice; +use smoltcp::wire::Ieee802154FrameType; +use smoltcp::wire::ieee802154::Frame; + use super::consts::MAX_PENDING_ADDRESS; use super::event::ParseableMacEvent; use super::typedefs::{ @@ -7,9 +10,6 @@ use super::typedefs::{ PanId, SecurityLevel, }; -use smoltcp::wire::Ieee802154FrameType; -use smoltcp::wire::ieee802154::Frame; - /// MLME ASSOCIATE Indication which will be used by the MAC /// to indicate the reception of an association request command #[repr(C)] diff --git a/embassy-stm32-wpan/src/mac/typedefs.rs b/embassy-stm32-wpan/src/mac/typedefs.rs index 44028bf47..7e3ef4962 100644 --- a/embassy-stm32-wpan/src/mac/typedefs.rs +++ b/embassy-stm32-wpan/src/mac/typedefs.rs @@ -1,4 +1,5 @@ use core::fmt::Debug; + use smoltcp::wire::ieee802154::{Address, AddressingMode, Pan}; use crate::numeric_enum; -- cgit