Sfoglia il codice sorgente

Sanitizing log macro to allow usage in match arm directly

Ryan Summers 3 anni fa
parent
commit
fb0ac23775
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 {