Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2023-12-22 23:48:20 +00:00 committed by GitHub
parent 2c0180059a
commit 5375c17872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 8 deletions

View File

@ -1,2 +1,2 @@
pub mod provider;
pub mod types;
pub mod types;

View File

@ -66,8 +66,7 @@ pub async fn provider(
Ok(())
}
fn handle_request (ipc: &Vec<u8>) -> Result<()> {
fn handle_request(ipc: &Vec<u8>) -> Result<()> {
let Ok(message) = serde_json::from_slice::<HttpServerAction>(ipc) else {
return Ok(());
};
@ -77,8 +76,7 @@ fn handle_request (ipc: &Vec<u8>) -> Result<()> {
Ok(())
}
fn handle_response (ipc: &Vec<u8>) -> Result<()> {
fn handle_response(ipc: &Vec<u8>) -> Result<()> {
let Ok(message) = serde_json::from_slice::<HttpServerAction>(ipc) else {
return Ok(());
};
@ -87,4 +85,3 @@ fn handle_response (ipc: &Vec<u8>) -> Result<()> {
Ok(())
}

View File

@ -14,7 +14,7 @@ struct EthEventSubscription {
}
#[derive(Debug, Serialize, Deserialize)]
pub enum ProviderAction {
pub enum ProviderAction {
HttpServerAction(HttpServerAction),
EthRpcAction(EthRpcAction),
}
@ -130,4 +130,4 @@ impl EthProviderError {
EthProviderError::EventSubscriptionFailed { .. } => "EventSubscriptionFailed",
}
}
}
}