File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -188,12 +188,14 @@ macro_rules! build_rpc_trait {
188
188
) *
189
189
) ;
190
190
191
- $(
192
- $( #[ doc=$sub_doc] ) *
193
- fn $sub_name ( $( $sub_p) * ) ;
194
- $( #[ doc=$unsub_doc] ) *
195
- fn $unsub_name ( $( $unsub_p) * ) -> $sub_result <$sub_out $( , $error_unsub) * >;
196
- ) *
191
+ build_rpc_trait!( GENERATE_FUNCTIONS
192
+ $(
193
+ $( #[ doc=$sub_doc] ) *
194
+ fn $sub_name ( $( $sub_p ) * ) ;
195
+ $( #[ doc=$unsub_doc] ) *
196
+ fn $unsub_name ( $( $unsub_p ) * ) -> $sub_result <$sub_out $( , $error_unsub) * >;
197
+ ) *
198
+ ) ;
197
199
198
200
/// Transform this into an `IoDelegate`, automatically wrapping
199
201
/// the parameters.
@@ -227,12 +229,12 @@ macro_rules! build_rpc_trait {
227
229
( GENERATE_FUNCTIONS
228
230
$(
229
231
$( #[ doc=$m_doc: expr] ) *
230
- fn $m_name: ident ( & self $( , $p: ty) * ) -> $result: ty;
232
+ fn $m_name: ident ( & self $( , $p: ty) * ) $ ( -> $result: ty) * ;
231
233
) *
232
234
) => {
233
235
$(
234
236
$( #[ doc=$m_doc] ) *
235
- fn $m_name ( & self $( , _: $p ) * ) -> $result;
237
+ fn $m_name ( & self $( , _: $p ) * ) $ ( -> $result) * ;
236
238
) *
237
239
} ;
238
240
You can’t perform that action at this time.
0 commit comments