Rename error macro to anyhow

This commit is contained in:
David Tolnay 2019-10-05 16:46:12 -04:00
parent e4135a5705
commit f54adae5ef
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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)*)) };
}