mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-27 13:01:29 +00:00
Rename error macro to anyhow
This commit is contained in:
parent
e4135a5705
commit
f54adae5ef
@ -30,7 +30,7 @@ macro_rules! bail {
|
||||
/// string with arguments. It also can take any custom type which implements
|
||||
/// `Debug` and `Display`.
|
||||
#[macro_export]
|
||||
macro_rules! error {
|
||||
macro_rules! anyhow {
|
||||
($e:expr) => { $crate::Error::new_adhoc($e) };
|
||||
($($arg:tt)*) => { $crate::Error::new_adhoc(format!($($arg)*)) };
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user