From 4718387dbe4c3da072b2652393762f335d5ae888 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 9 Jul 2024 03:31:58 +0000 Subject: [PATCH] fix wrapper macro semicolons Signed-off-by: Jason Volk --- src/core/debug.rs | 10 +++++----- src/core/log/mod.rs | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/core/debug.rs b/src/core/debug.rs index 7522aa77..1f855e52 100644 --- a/src/core/debug.rs +++ b/src/core/debug.rs @@ -14,9 +14,9 @@ pub use crate::utils::debug::*; macro_rules! debug_event { ( $level:expr, $($x:tt)+ ) => { if cfg!(debug_assertions) && cfg!(not(feature = "dev_release_log_level")) { - ::tracing::event!( $level, $($x)+ ); + ::tracing::event!( $level, $($x)+ ) } else { - ::tracing::debug!( $($x)+ ); + ::tracing::debug!( $($x)+ ) } } } @@ -27,7 +27,7 @@ macro_rules! debug_event { #[macro_export] macro_rules! debug_error { ( $($x:tt)+ ) => { - $crate::debug_event!(::tracing::Level::ERROR, $($x)+ ); + $crate::debug_event!(::tracing::Level::ERROR, $($x)+ ) } } @@ -37,7 +37,7 @@ macro_rules! debug_error { #[macro_export] macro_rules! debug_warn { ( $($x:tt)+ ) => { - $crate::debug_event!(::tracing::Level::WARN, $($x)+ ); + $crate::debug_event!(::tracing::Level::WARN, $($x)+ ) } } @@ -47,7 +47,7 @@ macro_rules! debug_warn { #[macro_export] macro_rules! debug_info { ( $($x:tt)+ ) => { - $crate::debug_event!(::tracing::Level::INFO, $($x)+ ); + $crate::debug_event!(::tracing::Level::INFO, $($x)+ ) } } diff --git a/src/core/log/mod.rs b/src/core/log/mod.rs index daa6b8e8..04d250a6 100644 --- a/src/core/log/mod.rs +++ b/src/core/log/mod.rs @@ -29,25 +29,25 @@ pub struct Log { #[macro_export] macro_rules! error { - ( $($x:tt)+ ) => { ::tracing::error!( $($x)+ ); } + ( $($x:tt)+ ) => { ::tracing::error!( $($x)+ ) } } #[macro_export] macro_rules! warn { - ( $($x:tt)+ ) => { ::tracing::warn!( $($x)+ ); } + ( $($x:tt)+ ) => { ::tracing::warn!( $($x)+ ) } } #[macro_export] macro_rules! info { - ( $($x:tt)+ ) => { ::tracing::info!( $($x)+ ); } + ( $($x:tt)+ ) => { ::tracing::info!( $($x)+ ) } } #[macro_export] macro_rules! debug { - ( $($x:tt)+ ) => { ::tracing::debug!( $($x)+ ); } + ( $($x:tt)+ ) => { ::tracing::debug!( $($x)+ ) } } #[macro_export] macro_rules! trace { - ( $($x:tt)+ ) => { ::tracing::trace!( $($x)+ ); } + ( $($x:tt)+ ) => { ::tracing::trace!( $($x)+ ) } }