Explorar o código

Sanitizing log macro to allow usage in match arm directly

Ryan Summers %!s(int64=3) %!d(string=hai) anos
pai
achega
fb0ac23775
Modificáronse 1 ficheiros con 1 adicións e 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 {