aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc/jsonrpc_macro/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc/jsonrpc_macro/src/lib.rs')
-rw-r--r--jsonrpc/jsonrpc_macro/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/jsonrpc/jsonrpc_macro/src/lib.rs b/jsonrpc/jsonrpc_macro/src/lib.rs
index 5acfa5e..ecca5b1 100644
--- a/jsonrpc/jsonrpc_macro/src/lib.rs
+++ b/jsonrpc/jsonrpc_macro/src/lib.rs
@@ -30,7 +30,7 @@ pub fn rpc_impl(_attr: TokenStream, item: TokenStream) -> TokenStream {
for item in parsed_input.items {
match item {
- ImplItem::Method(method) => {
+ ImplItem::Fn(method) => {
methods.push(method.sig.ident);
}
_ => err!(item.span(), "unexpected item"),
@@ -68,7 +68,7 @@ pub fn rpc_pubsub_impl(_attr: TokenStream, item: TokenStream) -> TokenStream {
for item in parsed_input.items {
match item {
- ImplItem::Method(method) => {
+ ImplItem::Fn(method) => {
methods.push(method.sig.ident);
}
_ => err!(item.span(), "unexpected item"),