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()), } }