File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use objc_exception;
33use crate :: rc:: StrongPtr ;
44use crate :: runtime:: Object ;
55
6- pub unsafe fn r#try < F , R > ( closure : F ) -> Result < R , StrongPtr >
6+ pub unsafe fn catch_exception < F , R > ( closure : F ) -> Result < R , StrongPtr >
77 where F : FnOnce ( ) -> R {
88 objc_exception:: r#try ( closure) . map_err ( |exception| {
99 StrongPtr :: new ( exception as * mut Object )
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use crate::{Encode, EncodeArguments};
99#[ cfg( feature = "exception" ) ]
1010macro_rules! objc_try {
1111 ( $b: block) => (
12- $crate:: exception:: r#try ( || $b) . map_err( |exception|
12+ $crate:: exception:: catch_exception ( || $b) . map_err( |exception|
1313 if exception. is_null( ) {
1414 MessageError ( "Uncaught exception nil" . to_owned( ) )
1515 } else {
You can’t perform that action at this time.
0 commit comments