add missing err! case
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
63053640f1
commit
a5822ebc27
1 changed files with 4 additions and 0 deletions
|
@ -85,6 +85,10 @@ macro_rules! err {
|
||||||
$crate::error::Error::$variant($crate::err_log!(buf, $level, $($args)+))
|
$crate::error::Error::$variant($crate::err_log!(buf, $level, $($args)+))
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
($variant:ident($($args:ident),+)) => {
|
||||||
|
$crate::error::Error::$variant($($args),+)
|
||||||
|
};
|
||||||
|
|
||||||
($variant:ident($($args:tt)+)) => {
|
($variant:ident($($args:tt)+)) => {
|
||||||
$crate::error::Error::$variant($crate::format_maybe!($($args)+))
|
$crate::error::Error::$variant($crate::format_maybe!($($args)+))
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue