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) {
244
244
. add_static_method ( "createB" , Visibility :: Public , move |_| {
245
245
let borrow = b_ref. borrow ( ) ;
246
246
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)
248
249
} )
249
250
. return_type ( ReturnType :: new ( ReturnTypeHint :: ClassEntry ( B_CLS . into ( ) ) ) ) ;
250
251
}
@@ -255,7 +256,8 @@ fn integrate_dependent_classes(module: &mut Module) {
255
256
. add_static_method ( "createA" , Visibility :: Public , move |_| {
256
257
let borrow = a_ref. borrow ( ) ;
257
258
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)
259
261
} )
260
262
. return_type ( ReturnType :: new ( ReturnTypeHint :: ClassEntry ( A_CLS . into ( ) ) ) ) ;
261
263
}
You can’t perform that action at this time.
0 commit comments