From 146fb4fe9a1af39e4d870ea3b09fa94a5df7d703 Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Wed, 27 Nov 2024 11:20:13 -0300 Subject: [PATCH] fmt --- zebra-node-services/src/rpc_client.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zebra-node-services/src/rpc_client.rs b/zebra-node-services/src/rpc_client.rs index f1c9a423a57..f61381b2d21 100644 --- a/zebra-node-services/src/rpc_client.rs +++ b/zebra-node-services/src/rpc_client.rs @@ -108,9 +108,12 @@ impl RpcRequestClient { fn json_result_from_response_text( response_text: &str, ) -> std::result::Result { - let output: jsonrpsee_types::Response = serde_json::from_str(response_text)?; + let output: jsonrpsee_types::Response = + serde_json::from_str(response_text)?; match output.payload { - jsonrpsee_types::ResponsePayload::Success(success) => Ok(serde_json::from_value(success.into_owned())?), + jsonrpsee_types::ResponsePayload::Success(success) => { + Ok(serde_json::from_value(success.into_owned())?) + } jsonrpsee_types::ResponsePayload::Error(failure) => Err(failure.to_string().into()), } }