Explorar el Código

Sanitizing log macro to allow usage in match arm directly

Ryan Summers hace 3 años
padre
commit
fb0ac23775
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/macros.rs

+ 1 - 1
src/macros.rs

@@ -13,7 +13,7 @@ macro_rules! net_log {
 
 #[cfg(not(any(feature = "log", feature = "defmt")))]
 macro_rules! net_log {
-    ($level:ident, $($arg:expr),*) => { $( let _ = $arg; )* }
+    ($level:ident, $($arg:expr),*) => {{ $( let _ = $arg; )* }}
 }
 
 macro_rules! net_trace {