File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,8 @@ fn integrate_dependent_classes(module: &mut Module) {
244244 . add_static_method ( "createB" , Visibility :: Public , move |_| {
245245 let borrow = b_ref. borrow ( ) ;
246246 let b_state: & StateClass < ( ) > = borrow. as_ref ( ) . unwrap ( ) ;
247- Ok :: < _ , phper:: Error > ( b_state. init_object ( ) ?)
247+ let val = b_state. init_object ( ) ?;
248+ Ok :: < _ , phper:: Error > ( val)
248249 } )
249250 . return_type ( ReturnType :: new ( ReturnTypeHint :: ClassEntry ( B_CLS . into ( ) ) ) ) ;
250251 }
@@ -255,7 +256,8 @@ fn integrate_dependent_classes(module: &mut Module) {
255256 . add_static_method ( "createA" , Visibility :: Public , move |_| {
256257 let borrow = a_ref. borrow ( ) ;
257258 let a_state: & StateClass < ( ) > = borrow. as_ref ( ) . unwrap ( ) ;
258- Ok :: < _ , phper:: Error > ( a_state. init_object ( ) ?)
259+ let val = a_state. init_object ( ) ?;
260+ Ok :: < _ , phper:: Error > ( val)
259261 } )
260262 . return_type ( ReturnType :: new ( ReturnTypeHint :: ClassEntry ( A_CLS . into ( ) ) ) ) ;
261263 }
You can’t perform that action at this time.
0 commit comments