From a5822ebc274ddf92ba75f4f62d4e527078447baf Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 13 Sep 2024 18:55:56 +0000 Subject: [PATCH] add missing err! case Signed-off-by: Jason Volk --- src/core/error/err.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/error/err.rs b/src/core/error/err.rs index b3d0240e..4972e92a 100644 --- a/src/core/error/err.rs +++ b/src/core/error/err.rs @@ -85,6 +85,10 @@ macro_rules! err { $crate::error::Error::$variant($crate::err_log!(buf, $level, $($args)+)) }}; + ($variant:ident($($args:ident),+)) => { + $crate::error::Error::$variant($($args),+) + }; + ($variant:ident($($args:tt)+)) => { $crate::error::Error::$variant($crate::format_maybe!($($args)+)) };