readme, doc comments, clippies

This commit is contained in:
2026-05-17 22:53:33 -07:00
parent 719d4391b8
commit 2b39987ef5
4 changed files with 117 additions and 10 deletions
+16 -5
View File
@@ -7,25 +7,36 @@ pub use defmt::{debug, error, info, trace, warn};
mod no_defmt {
#[macro_export]
macro_rules! trace {
($($t:tt)*) => {};
($($t:tt)*) => {
()
};
}
#[macro_export]
macro_rules! debug {
($($t:tt)*) => {};
($($t:tt)*) => {
()
};
}
#[macro_export]
macro_rules! info {
($($t:tt)*) => {};
($($t:tt)*) => {
()
};
}
#[macro_export]
macro_rules! warn {
($($t:tt)*) => {};
($($t:tt)*) => {
()
};
}
#[macro_export]
macro_rules! error {
($($t:tt)*) => {};
($($t:tt)*) => {
()
};
}
}
#[allow(unused_imports)]
#[cfg(not(feature = "defmt"))]
pub use no_defmt::*;