Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 89af9a6

Browse files
committed
rustfmt
1 parent 3afbfe7 commit 89af9a6

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

client/consensus/aura/src/collators/lookahead.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ use cumulus_client_consensus_common::{
3737
self as consensus_common, ParachainBlockImportMarker, ParentSearchParams,
3838
};
3939
use cumulus_client_consensus_proposer::ProposerInterface;
40+
use cumulus_primitives_aura::AuraUnincludedSegmentApi;
4041
use cumulus_primitives_core::{
4142
relay_chain::Hash as PHash, CollectCollationInfo, PersistedValidationData,
4243
};
43-
use cumulus_primitives_aura::AuraUnincludedSegmentApi;
4444
use cumulus_relay_chain_interface::RelayChainInterface;
4545

4646
use polkadot_overseer::Handle as OverseerHandle;
@@ -96,7 +96,8 @@ pub async fn run<Block, P, BI, CIDP, Client, Backend, RClient, SO, Proposer, CS>
9696
+ Send
9797
+ Sync
9898
+ 'static,
99-
Client::Api: AuraApi<Block, P::Public> + CollectCollationInfo<Block> + AuraUnincludedSegmentApi<Block>,
99+
Client::Api:
100+
AuraApi<Block, P::Public> + CollectCollationInfo<Block> + AuraUnincludedSegmentApi<Block>,
100101
Backend: sp_blockchain::Backend<Block>,
101102
RClient: RelayChainInterface,
102103
CIDP: CreateInherentDataProviders<Block, ()> + 'static,

client/consensus/aura/src/equivocation_import_queue.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
/// Equivocation resistance in general is a hard problem, as different nodes in the network
2020
/// may see equivocations in a different order, and therefore may not agree on which blocks
2121
/// should be thrown out and which ones should be kept.
22-
2322
use codec::{Decode, Encode};
24-
use lru::LruCache;
2523
use cumulus_client_consensus_common::ParachainBlockImportMarker;
24+
use lru::LruCache;
2625

2726
use sc_consensus::{
2827
import_queue::{BasicQueue, Verifier as VerifierT},
@@ -136,7 +135,7 @@ where
136135
return Err(format!(
137136
"Rejecting block {:?} due to excessive equivocations at slot",
138137
post_hash,
139-
));
138+
))
140139
}
141140
},
142141
Err(aura_internal::SealVerificationError::Deferred(hdr, slot)) => {

client/network/src/tests.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,10 @@ impl RelayChainInterface for DummyRelayChainInterface {
243243
}
244244
}
245245

246-
fn make_validator_and_api(
247-
) -> (RequireSecondedInBlockAnnounce<Block, Arc<DummyRelayChainInterface>>, Arc<DummyRelayChainInterface>) {
246+
fn make_validator_and_api() -> (
247+
RequireSecondedInBlockAnnounce<Block, Arc<DummyRelayChainInterface>>,
248+
Arc<DummyRelayChainInterface>,
249+
) {
248250
let relay_chain_interface = Arc::new(DummyRelayChainInterface::new());
249251
(
250252
RequireSecondedInBlockAnnounce::new(relay_chain_interface.clone(), ParaId::from(56)),

client/service/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ where
361361
_ => None,
362362
};
363363

364-
let block_announce_validator = RequireSecondedInBlockAnnounce::new(relay_chain_interface, para_id);
364+
let block_announce_validator =
365+
RequireSecondedInBlockAnnounce::new(relay_chain_interface, para_id);
365366
let block_announce_validator_builder = move |_| Box::new(block_announce_validator) as Box<_>;
366367

367368
sc_service::build_network(sc_service::BuildNetworkParams {

0 commit comments

Comments
 (0)