File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 > {
You can’t perform that action at this time.
0 commit comments