File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -98,21 +98,24 @@ fn integrate_foo(module: &mut Module) {
9898 . add_method ( "key" , Visibility :: Public , |this, _arguments| {
9999 let state = this. as_state ( ) ;
100100 Ok :: < _ , phper:: Error > ( state. position as i64 )
101- } ) . return_type ( ReturnType :: by_val ( ReturnTypeHint :: Mixed ) ) ;
101+ } )
102+ . return_type ( ReturnType :: by_val ( ReturnTypeHint :: Mixed ) ) ;
102103
103104 class
104105 . add_method ( "next" , Visibility :: Public , |this, _arguments| {
105106 let state = this. as_mut_state ( ) ;
106107 state. position += 1 ;
107108 Ok :: < _ , Infallible > ( ( ) )
108- } ) . return_type ( ReturnType :: by_val ( ReturnTypeHint :: Void ) ) ;
109+ } )
110+ . return_type ( ReturnType :: by_val ( ReturnTypeHint :: Void ) ) ;
109111
110112 class
111113 . add_method ( "rewind" , Visibility :: Public , |this, _arguments| {
112114 let state = this. as_mut_state ( ) ;
113115 state. position = 0 ;
114116 Ok :: < _ , Infallible > ( ( ) )
115- } ) . return_type ( ReturnType :: by_val ( ReturnTypeHint :: Void ) ) ;
117+ } )
118+ . return_type ( ReturnType :: by_val ( ReturnTypeHint :: Void ) ) ;
116119
117120 class
118121 . add_method ( "valid" , Visibility :: Public , |this, _arguments| {
You can’t perform that action at this time.
0 commit comments