From f54adae5eff8012103a959d598a5b730e1eb9b79 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 5 Oct 2019 16:46:12 -0400 Subject: [PATCH] Rename error macro to anyhow --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 6299dc0..7024960 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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)*)) }; }