From fd8ee858caca849ad20d004af36d2cc469cd1f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kami=C5=84ski?= Date: Wed, 3 Jul 2024 15:23:58 +0200 Subject: [PATCH] fmt --- crates/starknet-types-rpc/src/custom/block_id.rs | 4 +++- crates/starknet-types-rpc/src/custom/query.rs | 6 ++++-- crates/starknet-types-rpc/src/custom/syncing_status.rs | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/crates/starknet-types-rpc/src/custom/block_id.rs b/crates/starknet-types-rpc/src/custom/block_id.rs index 632fc11..e5b92eb 100644 --- a/crates/starknet-types-rpc/src/custom/block_id.rs +++ b/crates/starknet-types-rpc/src/custom/block_id.rs @@ -43,7 +43,9 @@ impl serde::Serialize for BlockId { helper.serialize(serializer) } BlockId::Number(block_number) => { - let helper = BlockNumberHelper { block_number: *block_number }; + let helper = BlockNumberHelper { + block_number: *block_number, + }; helper.serialize(serializer) } } diff --git a/crates/starknet-types-rpc/src/custom/query.rs b/crates/starknet-types-rpc/src/custom/query.rs index af8ef11..a96e2de 100644 --- a/crates/starknet-types-rpc/src/custom/query.rs +++ b/crates/starknet-types-rpc/src/custom/query.rs @@ -3,8 +3,10 @@ use serde::{Deserialize, Serialize}; -use crate::{BroadcastedDeclareTxnV1, BroadcastedDeclareTxnV2, BroadcastedDeclareTxnV3, - DeployAccountTxnV1, DeployAccountTxnV3, InvokeTxnV0, InvokeTxnV1, InvokeTxnV3}; +use crate::{ + BroadcastedDeclareTxnV1, BroadcastedDeclareTxnV2, BroadcastedDeclareTxnV3, DeployAccountTxnV1, + DeployAccountTxnV3, InvokeTxnV0, InvokeTxnV1, InvokeTxnV3, +}; #[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)] #[serde(tag = "version")] diff --git a/crates/starknet-types-rpc/src/custom/syncing_status.rs b/crates/starknet-types-rpc/src/custom/syncing_status.rs index ff94dbe..d81b57f 100644 --- a/crates/starknet-types-rpc/src/custom/syncing_status.rs +++ b/crates/starknet-types-rpc/src/custom/syncing_status.rs @@ -82,7 +82,7 @@ fn syncing_status_from_false() { #[cfg(test)] #[test] fn syncing_status_to_false() { - pub use starknet_types_core::felt::Felt; + pub use starknet_types_core::felt::Felt; let syncing_status = SyncingStatus::::NotSyncing; let s = serde_json::to_string(&syncing_status).unwrap();