File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -244,8 +244,7 @@ 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- let val = b_state. init_object ( ) ?;
248- Ok :: < _ , phper:: Error > ( val)
247+ Ok :: < _ , phper:: Error > ( b_state. init_object ( ) ?)
249248 } )
250249 . return_type ( ReturnType :: new ( ReturnTypeHint :: ClassEntry ( B_CLS . into ( ) ) ) ) ;
251250 }
@@ -256,8 +255,7 @@ fn integrate_dependent_classes(module: &mut Module) {
256255 . add_static_method ( "createA" , Visibility :: Public , move |_| {
257256 let borrow = a_ref. borrow ( ) ;
258257 let a_state: & StateClass < ( ) > = borrow. as_ref ( ) . unwrap ( ) ;
259- let val = a_state. init_object ( ) ?;
260- Ok :: < _ , phper:: Error > ( val)
258+ Ok :: < _ , phper:: Error > ( a_state. init_object ( ) ?)
261259 } )
262260 . return_type ( ReturnType :: new ( ReturnTypeHint :: ClassEntry ( A_CLS . into ( ) ) ) ) ;
263261 }
You can’t perform that action at this time.
0 commit comments