From c2c4cb08c370bc27a06fa89403354859f791c23f Mon Sep 17 00:00:00 2001 From: hozan23 Date: Sat, 12 Oct 2024 22:24:06 +0200 Subject: cargo clippy --- jsonrpc/src/server/pubsub_service.rs | 2 +- jsonrpc/src/server/service.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'jsonrpc/src/server') diff --git a/jsonrpc/src/server/pubsub_service.rs b/jsonrpc/src/server/pubsub_service.rs index 909b0b0..0775880 100644 --- a/jsonrpc/src/server/pubsub_service.rs +++ b/jsonrpc/src/server/pubsub_service.rs @@ -12,6 +12,6 @@ type PubSubRPCMethodOutput<'a> = /// Defines the interface for an RPC service. pub trait PubSubRPCService: Sync + Send { - fn get_pubsub_method<'a>(&'a self, name: &'a str) -> Option; + fn get_pubsub_method(&self, name: &str) -> Option; fn name(&self) -> String; } diff --git a/jsonrpc/src/server/service.rs b/jsonrpc/src/server/service.rs index 787da86..5195d2c 100644 --- a/jsonrpc/src/server/service.rs +++ b/jsonrpc/src/server/service.rs @@ -9,6 +9,6 @@ type RPCMethodOutput<'a> = /// Defines the interface for an RPC service. pub trait RPCService: Sync + Send { - fn get_method<'a>(&'a self, name: &'a str) -> Option; + fn get_method(&self, name: &str) -> Option; fn name(&self) -> String; } -- cgit v1.2.3