From 8371f767ce63ba5342b34be641a7ce6c44493bae Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 20 Mar 2022 12:44:29 +0100 Subject: [PATCH] Fix typo in debug assert macros --- src/debug.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debug.rs b/src/debug.rs index 4d6002f1..eb1cc3fa 100644 --- a/src/debug.rs +++ b/src/debug.rs @@ -54,7 +54,7 @@ macro_rules! nih_debug_assert_eq { nih_log!(concat!("Debug assertion failed: ", stringify!($left), " != ", stringify!($right))); } ); - (left:expr, $right:expr, $format:expr $(, $($args:tt)*)?) => ( + ($left:expr, $right:expr, $format:expr $(, $($args:tt)*)?) => ( if cfg!(debug_assertions) && $left != $right { nih_log!(concat!("Debug assertion failed: ", stringify!($left), " != ", stringify!($right), ", ", $format), $($($args)*)?); } @@ -70,7 +70,7 @@ macro_rules! nih_debug_assert_ne { nih_log!(concat!("Debug assertion failed: ", stringify!($left), " == ", stringify!($right))); } ); - (left:expr, $right:expr, $format:expr $(, $($args:tt)*)?) => ( + ($left:expr, $right:expr, $format:expr $(, $($args:tt)*)?) => ( if cfg!(debug_assertions) && $left == $right { nih_log!(concat!("Debug assertion failed: ", stringify!($left), " == ", stringify!($right), ", ", $format), $($($args)*)?); }