mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 18:41:03 +00:00
cargo +nightly fmt (#3540)
* cargo +nightly fmt * add cargo-fmt check to ci * update ci * fmt * fmt * skip macro * ignore bridges
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
use primitives::v1::{Id as ParaId, PersistedValidationData, ValidatorIndex};
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
use crate::{configuration, paras, hrmp};
|
||||
use crate::{configuration, hrmp, paras};
|
||||
|
||||
/// Make the persisted validation data for a particular parachain, a specified relay-parent and it's
|
||||
/// storage root.
|
||||
@@ -43,7 +43,8 @@ pub fn make_persisted_validation_data<T: paras::Config + hrmp::Config>(
|
||||
|
||||
/// Take the active subset of a set containing all validators.
|
||||
pub fn take_active_subset<T: Clone>(active_validators: &[ValidatorIndex], set: &[T]) -> Vec<T> {
|
||||
let subset: Vec<_> = active_validators.iter()
|
||||
let subset: Vec<_> = active_validators
|
||||
.iter()
|
||||
.filter_map(|i| set.get(i.0 as usize))
|
||||
.cloned()
|
||||
.collect();
|
||||
|
||||
Reference in New Issue
Block a user