diff --git a/src/debug.rs b/src/debug.rs index 4bfaee6..191e223 100644 --- a/src/debug.rs +++ b/src/debug.rs @@ -39,23 +39,18 @@ macro_rules! debug { ($fmt:literal, $($args:expr),+) => { #[cfg(debug_assertions)] $crate::syscalls::debug(alloc::format!($fmt, $($args), +)); - // Avoid unused warnings. - #[cfg(not(debug_assertions))] - core::mem::drop(($(&$args),+)); }; } #[cfg(feature = "simulator")] #[macro_export] macro_rules! debug { - + ($fmt:literal) => { #[cfg(std)] println!("{}", format!($fmt)); }; ($fmt:literal, $($args:expr),+) => { - #[cfg(not(std))] - let _ = ($(&$args),+); #[cfg(std)] println!("{}", format!($fmt, $($args), +)); };