diff --git a/embassy-extras/src/fmt.rs b/embassy-extras/src/fmt.rs index 1be1057a7..fc1855ed1 100644 --- a/embassy-extras/src/fmt.rs +++ b/embassy-extras/src/fmt.rs @@ -32,35 +32,30 @@ mod fmt { unreachable, }; - #[macro_export] macro_rules! trace { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! debug { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! info { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! warn { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! error { ($($msg:expr),+ $(,)?) => { () @@ -69,7 +64,6 @@ mod fmt { } #[cfg(not(feature = "defmt"))] -#[macro_export] macro_rules! unwrap { ($arg:expr) => { match $crate::fmt::Try::into_result($arg) { diff --git a/embassy-nrf/src/fmt.rs b/embassy-nrf/src/fmt.rs index 1be1057a7..fc1855ed1 100644 --- a/embassy-nrf/src/fmt.rs +++ b/embassy-nrf/src/fmt.rs @@ -32,35 +32,30 @@ mod fmt { unreachable, }; - #[macro_export] macro_rules! trace { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! debug { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! info { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! warn { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! error { ($($msg:expr),+ $(,)?) => { () @@ -69,7 +64,6 @@ mod fmt { } #[cfg(not(feature = "defmt"))] -#[macro_export] macro_rules! unwrap { ($arg:expr) => { match $crate::fmt::Try::into_result($arg) { diff --git a/embassy-stm32f4/src/fmt.rs b/embassy-stm32f4/src/fmt.rs index 1be1057a7..fc1855ed1 100644 --- a/embassy-stm32f4/src/fmt.rs +++ b/embassy-stm32f4/src/fmt.rs @@ -32,35 +32,30 @@ mod fmt { unreachable, }; - #[macro_export] macro_rules! trace { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! debug { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! info { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! warn { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! error { ($($msg:expr),+ $(,)?) => { () @@ -69,7 +64,6 @@ mod fmt { } #[cfg(not(feature = "defmt"))] -#[macro_export] macro_rules! unwrap { ($arg:expr) => { match $crate::fmt::Try::into_result($arg) { diff --git a/embassy/src/fmt.rs b/embassy/src/fmt.rs index 1be1057a7..fc1855ed1 100644 --- a/embassy/src/fmt.rs +++ b/embassy/src/fmt.rs @@ -32,35 +32,30 @@ mod fmt { unreachable, }; - #[macro_export] macro_rules! trace { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! debug { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! info { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! warn { ($($msg:expr),+ $(,)?) => { () }; } - #[macro_export] macro_rules! error { ($($msg:expr),+ $(,)?) => { () @@ -69,7 +64,6 @@ mod fmt { } #[cfg(not(feature = "defmt"))] -#[macro_export] macro_rules! unwrap { ($arg:expr) => { match $crate::fmt::Try::into_result($arg) {