mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-20 23:21:36 +03:00
Format Rust code using rustfmt
This commit is contained in:
parent
050049aa40
commit
62d3bb3705
@ -286,7 +286,9 @@ fn handle_eth_message(
|
|||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
match serde_json::from_slice::<eth::EthSubResult>(body) {
|
match serde_json::from_slice::<eth::EthSubResult>(body) {
|
||||||
Ok(Ok(eth::EthSub { result, .. })) => {
|
Ok(Ok(eth::EthSub { result, .. })) => {
|
||||||
if let Ok(eth::SubscriptionResult::Log(log)) = serde_json::from_value::<eth::SubscriptionResult>(result) {
|
if let Ok(eth::SubscriptionResult::Log(log)) =
|
||||||
|
serde_json::from_value::<eth::SubscriptionResult>(result)
|
||||||
|
{
|
||||||
if let Err(e) = handle_log(state, pending_notes, &log) {
|
if let Err(e) = handle_log(state, pending_notes, &log) {
|
||||||
print_to_terminal(1, &format!("log-handling error! {e:?}"));
|
print_to_terminal(1, &format!("log-handling error! {e:?}"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user