Fix a macro warning

This commit is contained in:
Bruce Leidl 2021-12-14 05:59:16 -05:00
parent 663478072c
commit 841ee6016b

View File

@ -14,10 +14,10 @@ pub type Result<T> = result::Result<T,Error>;
#[macro_export] #[macro_export]
macro_rules! bail { macro_rules! bail {
($e:expr) => { ($e:expr) => {
return Err($crate::error::Error::message($e)); return Err($crate::error::Error::message($e))
}; };
($fmt:expr, $($arg:tt)*) => { ($fmt:expr, $($arg:tt)*) => {
return Err($crate::error::Error::message(format!($fmt, $($arg)*))); return Err($crate::error::Error::message(format!($fmt, $($arg)*)))
}; };
} }