Fix a macro warning
This commit is contained in:
parent
663478072c
commit
841ee6016b
@ -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)*)))
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user