Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2024-12-17 19:54:35 +00:00 committed by GitHub
parent 050049aa40
commit 62d3bb3705
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -286,7 +286,9 @@ fn handle_eth_message(
) -> anyhow::Result<()> {
match serde_json::from_slice::<eth::EthSubResult>(body) {
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) {
print_to_terminal(1, &format!("log-handling error! {e:?}"));
}