Skip to content
Myr

Rename error macro to anyhow

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent e4135a5 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/lib.rs+1 added-1 removed
28 unmodified lines
29/// This evaluates to an `Error`. It can take either just a string, or a format30/// string with arguments. It also can take any custom type which implements31/// `Debug` and `Display`.32#[macro_export]33macro_rules! error {33macro_rules! anyhow {34 ($e:expr) => { $crate::Error::new_adhoc($e) };35 ($($arg:tt)*) => { $crate::Error::new_adhoc(format!($($arg)*)) };36}