From 2b21d7acf6cf41c575bc778f0f229ebab09e74f2 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Sat, 11 Sep 2021 12:32:01 -0600 Subject: [PATCH] fix rpc_only --- rpc-toolkit-macro-internals/src/command/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc-toolkit-macro-internals/src/command/build.rs b/rpc-toolkit-macro-internals/src/command/build.rs index 1d1eb88..30d335b 100644 --- a/rpc-toolkit-macro-internals/src/command/build.rs +++ b/rpc-toolkit-macro-internals/src/command/build.rs @@ -886,7 +886,7 @@ fn cli_handler( match opt { Options::Leaf(opt) if matches!(opt.exec_ctx, ExecutionContext::RpcOnly(_)) => quote! { pub fn cli_handler#generics( - _ctx: (), + _ctx: GenericContext, _parent_data: #parent_data_ty, _rt: Option<::rpc_toolkit::command_helpers::prelude::Runtime>, _matches: &::rpc_toolkit::command_helpers::prelude::ArgMatches<'_>,