Do not export fmt macros.

This was introduced by accident by me struggling with the weird intra-crate macro importing system...
This commit is contained in:
Dario Nieuwenhuis 2021-03-17 22:50:27 +01:00
parent f14361835f
commit a9076636ac
4 changed files with 0 additions and 24 deletions

View File

@ -32,35 +32,30 @@ mod fmt {
unreachable, unreachable,
}; };
#[macro_export]
macro_rules! trace { macro_rules! trace {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! debug { macro_rules! debug {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! info { macro_rules! info {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! warn { macro_rules! warn {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! error { macro_rules! error {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
@ -69,7 +64,6 @@ mod fmt {
} }
#[cfg(not(feature = "defmt"))] #[cfg(not(feature = "defmt"))]
#[macro_export]
macro_rules! unwrap { macro_rules! unwrap {
($arg:expr) => { ($arg:expr) => {
match $crate::fmt::Try::into_result($arg) { match $crate::fmt::Try::into_result($arg) {

View File

@ -32,35 +32,30 @@ mod fmt {
unreachable, unreachable,
}; };
#[macro_export]
macro_rules! trace { macro_rules! trace {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! debug { macro_rules! debug {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! info { macro_rules! info {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! warn { macro_rules! warn {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! error { macro_rules! error {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
@ -69,7 +64,6 @@ mod fmt {
} }
#[cfg(not(feature = "defmt"))] #[cfg(not(feature = "defmt"))]
#[macro_export]
macro_rules! unwrap { macro_rules! unwrap {
($arg:expr) => { ($arg:expr) => {
match $crate::fmt::Try::into_result($arg) { match $crate::fmt::Try::into_result($arg) {

View File

@ -32,35 +32,30 @@ mod fmt {
unreachable, unreachable,
}; };
#[macro_export]
macro_rules! trace { macro_rules! trace {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! debug { macro_rules! debug {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! info { macro_rules! info {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! warn { macro_rules! warn {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! error { macro_rules! error {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
@ -69,7 +64,6 @@ mod fmt {
} }
#[cfg(not(feature = "defmt"))] #[cfg(not(feature = "defmt"))]
#[macro_export]
macro_rules! unwrap { macro_rules! unwrap {
($arg:expr) => { ($arg:expr) => {
match $crate::fmt::Try::into_result($arg) { match $crate::fmt::Try::into_result($arg) {

View File

@ -32,35 +32,30 @@ mod fmt {
unreachable, unreachable,
}; };
#[macro_export]
macro_rules! trace { macro_rules! trace {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! debug { macro_rules! debug {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! info { macro_rules! info {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! warn { macro_rules! warn {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
}; };
} }
#[macro_export]
macro_rules! error { macro_rules! error {
($($msg:expr),+ $(,)?) => { ($($msg:expr),+ $(,)?) => {
() ()
@ -69,7 +64,6 @@ mod fmt {
} }
#[cfg(not(feature = "defmt"))] #[cfg(not(feature = "defmt"))]
#[macro_export]
macro_rules! unwrap { macro_rules! unwrap {
($arg:expr) => { ($arg:expr) => {
match $crate::fmt::Try::into_result($arg) { match $crate::fmt::Try::into_result($arg) {