mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +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:
@@ -33,7 +33,6 @@
|
||||
// --header=./file_header.txt
|
||||
// --output=./runtime/kusama/src/weights/
|
||||
|
||||
|
||||
#![allow(unused_parens)]
|
||||
#![allow(unused_imports)]
|
||||
|
||||
@@ -43,19 +42,19 @@ use sp_std::marker::PhantomData;
|
||||
/// Weight functions for `pallet_elections_phragmen`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> pallet_elections_phragmen::WeightInfo for WeightInfo<T> {
|
||||
fn vote_equal(v: u32, ) -> Weight {
|
||||
fn vote_equal(v: u32) -> Weight {
|
||||
(54_923_000 as Weight)
|
||||
.saturating_add((324_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
fn vote_more(v: u32, ) -> Weight {
|
||||
fn vote_more(v: u32) -> Weight {
|
||||
(83_389_000 as Weight)
|
||||
.saturating_add((341_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
fn vote_less(v: u32, ) -> Weight {
|
||||
fn vote_less(v: u32) -> Weight {
|
||||
(78_865_000 as Weight)
|
||||
.saturating_add((343_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
@@ -66,13 +65,13 @@ impl<T: frame_system::Config> pallet_elections_phragmen::WeightInfo for WeightIn
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
fn submit_candidacy(c: u32, ) -> Weight {
|
||||
fn submit_candidacy(c: u32) -> Weight {
|
||||
(68_455_000 as Weight)
|
||||
.saturating_add((370_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
fn renounce_candidacy_candidate(c: u32, ) -> Weight {
|
||||
fn renounce_candidacy_candidate(c: u32) -> Weight {
|
||||
(54_009_000 as Weight)
|
||||
.saturating_add((200_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
@@ -94,17 +93,16 @@ impl<T: frame_system::Config> pallet_elections_phragmen::WeightInfo for WeightIn
|
||||
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
fn remove_member_wrong_refund() -> Weight {
|
||||
(8_551_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
(8_551_000 as Weight).saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
}
|
||||
fn clean_defunct_voters(v: u32, _d: u32, ) -> Weight {
|
||||
fn clean_defunct_voters(v: u32, _d: u32) -> Weight {
|
||||
(0 as Weight)
|
||||
.saturating_add((151_754_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(v as Weight)))
|
||||
}
|
||||
fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight {
|
||||
fn election_phragmen(c: u32, v: u32, e: u32) -> Weight {
|
||||
(0 as Weight)
|
||||
.saturating_add((134_602_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add((111_037_000 as Weight).saturating_mul(v as Weight))
|
||||
|
||||
Reference in New Issue
Block a user