From c8e6722a03dc066dc5184a02ec413913081f4393 Mon Sep 17 00:00:00 2001 From: James Wilson Date: Tue, 22 Oct 2024 14:30:04 +0100 Subject: [PATCH] fix check warnings --- subxt/src/backend/legacy/rpc_methods.rs | 3 +-- subxt/src/backend/unstable/rpc_methods.rs | 12 +++--------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/subxt/src/backend/legacy/rpc_methods.rs b/subxt/src/backend/legacy/rpc_methods.rs index 8ba1db2f7f..c0f0cfd2a4 100644 --- a/subxt/src/backend/legacy/rpc_methods.rs +++ b/subxt/src/backend/legacy/rpc_methods.rs @@ -332,8 +332,7 @@ impl LegacyRpcMethods { public: Vec, ) -> Result<(), Error> { let params = rpc_params![key_type, suri, Bytes(public)]; - self.client.request("author_insertKey", params).await?; - Ok(()) + self.client.request("author_insertKey", params).await } /// Generate new session keys and returns the corresponding public keys. diff --git a/subxt/src/backend/unstable/rpc_methods.rs b/subxt/src/backend/unstable/rpc_methods.rs index 524b37bf82..e72f2cadef 100644 --- a/subxt/src/backend/unstable/rpc_methods.rs +++ b/subxt/src/backend/unstable/rpc_methods.rs @@ -77,9 +77,7 @@ impl UnstableRpcMethods { "chainHead_v1_continue", rpc_params![follow_subscription, operation_id], ) - .await?; - - Ok(()) + .await } /// Stops an operation started with `chainHead_v1_body`, `chainHead_v1_call`, or @@ -97,9 +95,7 @@ impl UnstableRpcMethods { "chainHead_v1_stopOperation", rpc_params![follow_subscription, operation_id], ) - .await?; - - Ok(()) + .await } /// Call the `chainHead_v1_body` method and return an operation ID to obtain the block's body. @@ -222,9 +218,7 @@ impl UnstableRpcMethods { ) -> Result<(), Error> { self.client .request("chainHead_v1_unpin", rpc_params![subscription_id, hash]) - .await?; - - Ok(()) + .await } /// Return the genesis hash.