diff --git a/embassy-stm32-wpan/src/lib.rs b/embassy-stm32-wpan/src/lib.rs index 5ecce2cc2..2a8ab7253 100644 --- a/embassy-stm32-wpan/src/lib.rs +++ b/embassy-stm32-wpan/src/lib.rs @@ -3,7 +3,7 @@ #![cfg_attr(feature = "mac", feature(type_alias_impl_trait, concat_bytes))] // This must go FIRST so that all the other modules see its macros. -pub mod fmt; +mod fmt; use core::mem::MaybeUninit; use core::sync::atomic::{compiler_fence, Ordering}; diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs index fb0279dcf..adb3054d8 100644 --- a/embassy-stm32/src/lib.rs +++ b/embassy-stm32/src/lib.rs @@ -5,7 +5,7 @@ #![doc = document_features::document_features!(feature_label = r#"{feature}"#)] // This must go FIRST so that all the other modules see its macros. -pub mod fmt; +mod fmt; include!(concat!(env!("OUT_DIR"), "/_macros.rs")); // Utilities