aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-10-12 22:31:49 +0200
committerhozan23 <hozan23@karyontech.net>2024-10-12 22:31:49 +0200
commitf9036b9e890a955b1a0e2fdde3bf9712360a8ca0 (patch)
treea0957637e890104b8bfb8ddb83f91068c732c999 /jsonrpc
parentc2c4cb08c370bc27a06fa89403354859f791c23f (diff)
fix jsonrpc/testsHEADmaster
Diffstat (limited to 'jsonrpc')
-rw-r--r--jsonrpc/impl/src/lib.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/jsonrpc/impl/src/lib.rs b/jsonrpc/impl/src/lib.rs
index 8814e61..d7ea466 100644
--- a/jsonrpc/impl/src/lib.rs
+++ b/jsonrpc/impl/src/lib.rs
@@ -54,9 +54,9 @@ pub fn rpc_impl(_attr: TokenStream, item: TokenStream) -> TokenStream {
let item: TokenStream2 = item.into();
quote! {
impl karyon_jsonrpc::RPCService for #self_ty {
- fn get_method<'a>(
- &'a self,
- name: &'a str
+ fn get_method(
+ &self,
+ name: &str
) -> Option<karyon_jsonrpc::RPCMethod> {
match name {
#(#impl_methods)*
@@ -115,9 +115,9 @@ pub fn rpc_pubsub_impl(_attr: TokenStream, item: TokenStream) -> TokenStream {
let item: TokenStream2 = item.into();
quote! {
impl karyon_jsonrpc::PubSubRPCService for #self_ty {
- fn get_pubsub_method<'a>(
- &'a self,
- name: &'a str
+ fn get_pubsub_method(
+ &self,
+ name: &str
) -> Option<karyon_jsonrpc::PubSubRPCMethod> {
match name {
#(#impl_methods)*