diff options
Diffstat (limited to 'src/log.rs')
| -rw-r--r-- | src/log.rs | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -24,6 +24,7 @@ | |||
| 24 | pub use defmt::Format; | 24 | pub use defmt::Format; |
| 25 | 25 | ||
| 26 | // For tracing or no logging, we provide a stub Format trait | 26 | // For tracing or no logging, we provide a stub Format trait |
| 27 | #[allow(unused)] | ||
| 27 | #[cfg(not(feature = "defmt"))] | 28 | #[cfg(not(feature = "defmt"))] |
| 28 | pub trait Format {} | 29 | pub trait Format {} |
| 29 | 30 | ||
| @@ -113,4 +114,5 @@ macro_rules! error { | |||
| 113 | } | 114 | } |
| 114 | 115 | ||
| 115 | // Re-export the macros at the module level for easier use | 116 | // Re-export the macros at the module level for easier use |
| 117 | #[allow(unused)] | ||
| 116 | pub use crate::{debug, error, info, trace, warn}; | 118 | pub use crate::{debug, error, info, trace, warn}; |
