Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejka committed Jul 3, 2024
1 parent dfeea2c commit fd8ee85
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion crates/starknet-types-rpc/src/custom/block_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ impl<F: Serialize> serde::Serialize for BlockId<F> {
helper.serialize(serializer)
}
BlockId::Number(block_number) => {
let helper = BlockNumberHelper { block_number: *block_number };
let helper = BlockNumberHelper {
block_number: *block_number,
};
helper.serialize(serializer)
}
}
Expand Down
6 changes: 4 additions & 2 deletions crates/starknet-types-rpc/src/custom/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
2 changes: 1 addition & 1 deletion crates/starknet-types-rpc/src/custom/syncing_status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Felt>::NotSyncing;
let s = serde_json::to_string(&syncing_status).unwrap();
Expand Down

0 comments on commit fd8ee85

Please sign in to comment.