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