From efb9bc2facbf3ee73ac0bedda4a4143758960789 Mon Sep 17 00:00:00 2001 From: Andrei Sandu Date: Thu, 29 Aug 2024 17:46:10 +0300 Subject: [PATCH] move `use` up Signed-off-by: Andrei Sandu --- polkadot/node/subsystem-util/src/runtime/mod.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/polkadot/node/subsystem-util/src/runtime/mod.rs b/polkadot/node/subsystem-util/src/runtime/mod.rs index e53a158c3a38..b960453fba06 100644 --- a/polkadot/node/subsystem-util/src/runtime/mod.rs +++ b/polkadot/node/subsystem-util/src/runtime/mod.rs @@ -32,11 +32,15 @@ use polkadot_node_subsystem_types::UnpinHandle; use polkadot_primitives::{ node_features::FeatureIndex, slashing, AsyncBackingParams, CandidateEvent, CandidateHash, CoreIndex, CoreState, EncodeAs, ExecutorParams, GroupIndex, GroupRotationInfo, Hash, - IndexedVec, NodeFeatures, OccupiedCore, ScrapedOnChainVotes, SessionIndex, SessionInfo, Signed, - SigningContext, UncheckedSigned, ValidationCode, ValidationCodeHash, ValidatorId, - ValidatorIndex, LEGACY_MIN_BACKING_VOTES, + Id as ParaId, IndexedVec, NodeFeatures, OccupiedCore, ScrapedOnChainVotes, SessionIndex, + SessionInfo, Signed, SigningContext, UncheckedSigned, ValidationCode, ValidationCodeHash, + ValidatorId, ValidatorIndex, LEGACY_MIN_BACKING_VOTES, }; +use std::collections::{BTreeMap, VecDeque}; + +use crate::{has_required_runtime, request_claim_queue, request_disabled_validators, runtime}; + use crate::{ request_async_backing_params, request_availability_cores, request_candidate_events, request_from_runtime, request_key_ownership_proof, request_on_chain_votes, @@ -580,11 +584,6 @@ pub async fn request_node_features( } } -use polkadot_primitives::Id as ParaId; -use std::collections::{BTreeMap, VecDeque}; - -use crate::{has_required_runtime, request_claim_queue, request_disabled_validators, runtime}; - /// A snapshot of the runtime claim queue at an arbitrary relay chain block. #[derive(Default)] pub struct ClaimQueueSnapshot(pub BTreeMap>);