From 52bfe968b07b10db22b860ca4c20208e51ffc19c Mon Sep 17 00:00:00 2001 From: tbro Date: Thu, 15 Aug 2024 17:23:30 +0300 Subject: [PATCH] cargo fmt --- marketplace-builder/src/bin/marketplace-builder.rs | 3 +-- sequencer/src/api.rs | 10 +++------- sequencer/src/bin/espresso-bridge.rs | 3 +-- sequencer/src/main.rs | 10 ++-------- 4 files changed, 7 insertions(+), 19 deletions(-) diff --git a/marketplace-builder/src/bin/marketplace-builder.rs b/marketplace-builder/src/bin/marketplace-builder.rs index 77db7a2267..88772e0771 100644 --- a/marketplace-builder/src/bin/marketplace-builder.rs +++ b/marketplace-builder/src/bin/marketplace-builder.rs @@ -3,8 +3,7 @@ use std::{num::NonZeroUsize, path::PathBuf, time::Duration}; use async_compatibility_layer::logging::{setup_backtrace, setup_logging}; use clap::Parser; use espresso_types::{ - eth_signature_key::EthKeyPair, parse_duration, FeeAmount, NamespaceId, - SequencerVersions, + eth_signature_key::EthKeyPair, parse_duration, FeeAmount, NamespaceId, SequencerVersions, }; use hotshot::traits::ValidatedState; use hotshot_types::{ diff --git a/sequencer/src/api.rs b/sequencer/src/api.rs index fe1668cb61..77b44b8c5f 100644 --- a/sequencer/src/api.rs +++ b/sequencer/src/api.rs @@ -401,8 +401,7 @@ pub mod test_helpers { }; use hotshot::types::{Event, EventType}; use hotshot_contract_adapter::light_client::ParsedLightClientState; - - + use hotshot_types::{ event::LeafInfo, traits::{metrics::NoMetrics, node_implementation::ConsensusTime}, @@ -877,7 +876,7 @@ mod api_tests { use ethers::utils::Anvil; use futures::stream::StreamExt; use hotshot_query_service::availability::{LeafQueryData, VidCommonQueryData}; - + use portpicker::pick_unused_port; use sequencer_utils::test_utils::setup_test; use surf_disco::Client; @@ -1095,10 +1094,7 @@ mod test { }; use hotshot_types::{ event::LeafInfo, - traits::{ - metrics::NoMetrics, - node_implementation::ConsensusTime, - }, + traits::{metrics::NoMetrics, node_implementation::ConsensusTime}, ValidatorConfig, }; use jf_merkle_tree::prelude::{MerkleProof, Sha3Node}; diff --git a/sequencer/src/bin/espresso-bridge.rs b/sequencer/src/bin/espresso-bridge.rs index d92a4b4e63..2ecdda5782 100644 --- a/sequencer/src/bin/espresso-bridge.rs +++ b/sequencer/src/bin/espresso-bridge.rs @@ -5,8 +5,7 @@ use async_std::{sync::Arc, task::sleep}; use clap::{Parser, Subcommand}; use contract_bindings::fee_contract::FeeContract; use espresso_types::{ - eth_signature_key::EthKeyPair, FeeAccount, FeeAmount, FeeMerkleTree, Header, - SequencerVersions, + eth_signature_key::EthKeyPair, FeeAccount, FeeAmount, FeeMerkleTree, Header, SequencerVersions, }; use ethers::{ middleware::{Middleware, SignerMiddleware}, diff --git a/sequencer/src/main.rs b/sequencer/src/main.rs index 0d3a9ebfd3..61317c6881 100644 --- a/sequencer/src/main.rs +++ b/sequencer/src/main.rs @@ -4,10 +4,7 @@ use clap::Parser; use espresso_types::{SequencerVersions, SolverAuctionResultsProvider}; use futures::future::FutureExt; use hotshot::MarketplaceConfig; -use hotshot_types::traits::{ - metrics::NoMetrics, - node_implementation::Versions, -}; +use hotshot_types::traits::{metrics::NoMetrics, node_implementation::Versions}; use sequencer::{ api::{self, data_source::DataSourceOptions}, init_node, @@ -195,10 +192,7 @@ mod test { use async_std::task::spawn; use espresso_types::PubKey; - use hotshot_types::{ - light_client::StateKeyPair, - traits::signature_key::SignatureKey, - }; + use hotshot_types::{light_client::StateKeyPair, traits::signature_key::SignatureKey}; use portpicker::pick_unused_port; use sequencer::{ api::options::{Http, Status},