mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-18 22:21:50 +03:00
Format Rust code using rustfmt
This commit is contained in:
parent
2c0180059a
commit
5375c17872
@ -1,2 +1,2 @@
|
||||
pub mod provider;
|
||||
pub mod types;
|
||||
pub mod types;
|
||||
|
@ -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(())
|
||||
}
|
||||
|
||||
|
@ -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",
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user