Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypan authored and Jay Pan committed Dec 18, 2024
1 parent b4474c3 commit 40860fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions precompiles/parachain-staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ where
.collect::<Vec<CollatorInfo>>();
let validators = pallet_session::Pallet::<Runtime>::validators()
.into_iter()
.map(|info| {
H256::from(<AccountIdOf<Runtime> as Into<[u8; 32]>>::into(info))
})
.map(|info| H256::from(<AccountIdOf<Runtime> as Into<[u8; 32]>>::into(info)))
.collect::<Vec<H256>>();
let candidate_list = all_collators.into_iter().filter(|x| !validators.contains(&x.owner));
Ok(candidate_list.collect::<Vec<CollatorInfo>>())
Expand Down

0 comments on commit 40860fb

Please sign in to comment.