fix err! macro
This commit is contained in:
parent
c420ed9e8b
commit
907e883d48
4 changed files with 3 additions and 5 deletions
|
|
@ -8,5 +8,5 @@ pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
|
|||
|
||||
#[macro_export]
|
||||
macro_rules! err {
|
||||
($($string:expr),+) => (Box::<dyn Error>::from(format!($($string),+)))
|
||||
($($string:expr),+) => (Box::<dyn std::error::Error>::from(format!($($string),+)))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue