From 7b633faaa9638f0ef23e66a3863416f18cdbc853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Roycourt?= Date: Wed, 20 Sep 2023 17:47:18 +0200 Subject: [PATCH] fix: cargo fmt --- crates/ark-indexer/src/managers/block_manager.rs | 2 +- crates/ark-starknet/src/client/mod.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/ark-indexer/src/managers/block_manager.rs b/crates/ark-indexer/src/managers/block_manager.rs index 72a08fe6e..417951a29 100644 --- a/crates/ark-indexer/src/managers/block_manager.rs +++ b/crates/ark-indexer/src/managers/block_manager.rs @@ -59,7 +59,7 @@ impl<'a, T: StorageManager, C: StarknetClient> BlockManager<'a, T, C> { if *do_force { return self.storage.clean_block(block_number).is_ok(); } - + match self.storage.get_block_info(block_number) { Ok(info) => { if self.indexer_version > info.indexer_version { diff --git a/crates/ark-starknet/src/client/mod.rs b/crates/ark-starknet/src/client/mod.rs index 01bf76d32..762faae99 100644 --- a/crates/ark-starknet/src/client/mod.rs +++ b/crates/ark-starknet/src/client/mod.rs @@ -12,7 +12,9 @@ use std::marker::Sized; #[async_trait] pub trait StarknetClient { /// - fn new(rpc_url: &str) -> Result where Self: Sized; + fn new(rpc_url: &str) -> Result + where + Self: Sized; /// async fn block_id_to_u64(&self, id: &BlockId) -> Result;