fix complaints in CI (#3838)

This commit is contained in:
Shawn Tabrizi
2021-09-14 04:07:42 -04:00
committed by GitHub
parent 3800575db4
commit 09ecdf6f4a
5 changed files with 8 additions and 7 deletions
+4 -3
View File
@@ -60,14 +60,15 @@ impl pallet_election_provider_multi_phase::BenchmarkingConfig for BenchmarkConfi
pub type OnOnChainAccuracy = sp_runtime::Perbill; pub type OnOnChainAccuracy = sp_runtime::Perbill;
/// The election provider of the genesis /// The election provider of the genesis
pub type GenesisElectionOf<T> = frame_election_provider_support::onchain::OnChainSequentialPhragmen<T>; pub type GenesisElectionOf<T> =
frame_election_provider_support::onchain::OnChainSequentialPhragmen<T>;
/// Maximum number of iterations for balancing that will be executed in the embedded miner of /// Maximum number of iterations for balancing that will be executed in the embedded miner of
/// pallet-election-provider-multi-phase. /// pallet-election-provider-multi-phase.
pub const MINER_MAX_ITERATIONS: u32 = 10; pub const MINER_MAX_ITERATIONS: u32 = 10;
/// A source of random balance for the NPoS Solver, which is meant to be run by the OCW election /// A source of random balance for the NPoS Solver, which is meant to be run by the offchain worker
/// miner. /// election miner.
pub struct OffchainRandomBalancing; pub struct OffchainRandomBalancing;
impl frame_support::pallet_prelude::Get<Option<(usize, sp_npos_elections::ExtendedBalance)>> impl frame_support::pallet_prelude::Get<Option<(usize, sp_npos_elections::ExtendedBalance)>>
for OffchainRandomBalancing for OffchainRandomBalancing
@@ -41,7 +41,7 @@
use frame_support::{traits::Get, weights::Weight}; use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData; use sp_std::marker::PhantomData;
/// Weight functions for pallet_collective. /// Weight functions for `pallet_collective`.
pub struct WeightInfo<T>(PhantomData<T>); pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> { impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> {
// Storage: Instance1Collective Members (r:1 w:1) // Storage: Instance1Collective Members (r:1 w:1)
@@ -41,7 +41,7 @@
use frame_support::{traits::Get, weights::Weight}; use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData; use sp_std::marker::PhantomData;
/// Weight functions for pallet_collective. /// Weight functions for `pallet_collective`.
pub struct WeightInfo<T>(PhantomData<T>); pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> { impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> {
// Storage: Instance2Collective Members (r:1 w:1) // Storage: Instance2Collective Members (r:1 w:1)
@@ -41,7 +41,7 @@
use frame_support::{traits::Get, weights::Weight}; use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData; use sp_std::marker::PhantomData;
/// Weight functions for pallet_collective. /// Weight functions for `pallet_collective`.
pub struct WeightInfo<T>(PhantomData<T>); pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> { impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> {
// Storage: Instance1Collective Members (r:1 w:1) // Storage: Instance1Collective Members (r:1 w:1)
@@ -41,7 +41,7 @@
use frame_support::{traits::Get, weights::Weight}; use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData; use sp_std::marker::PhantomData;
/// Weight functions for pallet_collective. /// Weight functions for `pallet_collective`.
pub struct WeightInfo<T>(PhantomData<T>); pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> { impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> {
// Storage: Instance2Collective Members (r:1 w:1) // Storage: Instance2Collective Members (r:1 w:1)