@@ -448,7 +448,9 @@ fn test_panic() -> Result<()> {
448448 )
449449 . eval :: < Value > ( ) ?;
450450 Ok ( ( ) )
451- } ) ) { panic ! ( "no panic was detected" ) } ;
451+ } ) ) {
452+ panic ! ( "no panic was detected" )
453+ } ;
452454
453455 assert ! ( lua. globals( ) . get:: <Value >( "err" ) ? == Value :: Nil ) ;
454456 match lua. load ( "tostring(err)" ) . exec ( ) {
@@ -917,16 +919,22 @@ fn test_application_data() -> Result<()> {
917919
918920 // Insert of new data or removal should fail now
919921 assert ! ( lua. try_set_app_data:: <i32 >( 123 ) . is_err( ) ) ;
920- if catch_unwind ( AssertUnwindSafe ( || lua. set_app_data :: < i32 > ( 123 ) ) ) . is_ok ( ) { panic ! ( "expected panic" ) }
921- if catch_unwind ( AssertUnwindSafe ( || lua. remove_app_data :: < i32 > ( ) ) ) . is_ok ( ) { panic ! ( "expected panic" ) }
922+ if catch_unwind ( AssertUnwindSafe ( || lua. set_app_data :: < i32 > ( 123 ) ) ) . is_ok ( ) {
923+ panic ! ( "expected panic" )
924+ }
925+ if catch_unwind ( AssertUnwindSafe ( || lua. remove_app_data :: < i32 > ( ) ) ) . is_ok ( ) {
926+ panic ! ( "expected panic" )
927+ }
922928
923929 // Check display and debug impls
924930 assert_eq ! ( format!( "{s}" ) , "test1" ) ;
925931 assert_eq ! ( format!( "{s:?}" ) , "\" test1\" " ) ;
926932
927933 // Borrowing immutably and mutably of the same type is not allowed
928934 assert ! ( lua. try_app_data_mut:: <& str >( ) . is_err( ) ) ;
929- if let Ok ( _) = catch_unwind ( AssertUnwindSafe ( || lua. app_data_mut :: < & str > ( ) . unwrap ( ) ) ) { panic ! ( "expected panic" ) }
935+ if let Ok ( _) = catch_unwind ( AssertUnwindSafe ( || lua. app_data_mut :: < & str > ( ) . unwrap ( ) ) ) {
936+ panic ! ( "expected panic" )
937+ }
930938 assert ! ( lua. try_app_data_ref:: <Vec <& str >>( ) . is_err( ) ) ;
931939 drop ( ( s, v) ) ;
932940
0 commit comments