Skip to content

Commit ffab279

Browse files
committed
wip
1 parent 6b46daf commit ffab279

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ macro_rules! ensure_any {
148148
/// This macro accepts the same forms as [`e`], but wraps the error into `Err` and
149149
/// expands to returning the result from the current function.
150150
#[macro_export]
151-
macro_rules! bail {
151+
macro_rules! bail_e {
152152
($($tt:tt)*) => {
153153
return ::core::result::Result::Err($crate::e!($($tt)*))
154154
}
@@ -159,7 +159,7 @@ macro_rules! bail {
159159
/// This macro accepts the same forms as [`anyerr`], but wraps the error into `Err` and
160160
/// expands to returning the result from the current function.
161161
#[macro_export]
162-
macro_rules! bail_any {
162+
macro_rules! bail {
163163
($($tt:tt)*) => {
164164
return core::result::Result::Err($crate::anyerr!($($tt)*))
165165
}

src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fn test_whatever() {
2727
let _guard = wait_sequential();
2828

2929
fn fail() -> Result {
30-
n0_error::bail_any!("sad face");
30+
n0_error::bail!("sad face");
3131
}
3232

3333
fn fail_my_error() -> Result<(), MyError> {

0 commit comments

Comments
 (0)