style: Migrate to stable-only rustfmt configuration
- Remove nightly-only features from .rustfmt.toml and vendor/ss58-registry/rustfmt.toml - Removed features: imports_granularity, wrap_comments, comment_width, reorder_impl_items, spaces_around_ranges, binop_separator, match_arm_blocks, trailing_semicolon, trailing_comma - Format all 898 affected files with stable rustfmt - Ensures long-term reliability without nightly toolchain dependency
This commit is contained in:
@@ -531,8 +531,8 @@ pub mod pezpallet {
|
||||
let unchecked_eras_to_check = {
|
||||
// get the last available `bonding_duration` eras up to current era in reverse
|
||||
// order.
|
||||
let total_check_range = (current_era.saturating_sub(bonding_duration)..=
|
||||
current_era)
|
||||
let total_check_range = (current_era.saturating_sub(bonding_duration)
|
||||
..=current_era)
|
||||
.rev()
|
||||
.collect::<Vec<_>>();
|
||||
debug_assert!(
|
||||
@@ -608,7 +608,7 @@ pub mod pezpallet {
|
||||
);
|
||||
|
||||
match checked.try_extend(unchecked_eras_to_check.clone().into_iter()) {
|
||||
Ok(_) =>
|
||||
Ok(_) => {
|
||||
if stashes.is_empty() {
|
||||
Self::deposit_event(Event::<T>::BatchFinished { size: 0 });
|
||||
} else {
|
||||
@@ -616,7 +616,8 @@ pub mod pezpallet {
|
||||
Self::deposit_event(Event::<T>::BatchChecked {
|
||||
eras: unchecked_eras_to_check,
|
||||
});
|
||||
},
|
||||
}
|
||||
},
|
||||
Err(_) => {
|
||||
// don't put the head back in -- there is an internal error in the
|
||||
// pezpallet.
|
||||
|
||||
@@ -209,8 +209,8 @@ impl ExtBuilder {
|
||||
(VALIDATOR_PREFIX..VALIDATOR_PREFIX + VALIDATORS_PER_ERA)
|
||||
.map(|v| {
|
||||
// for the sake of sanity, let's register this taker as an actual validator.
|
||||
let others = (NOMINATOR_PREFIX..
|
||||
(NOMINATOR_PREFIX + NOMINATORS_PER_VALIDATOR_PER_ERA))
|
||||
let others = (NOMINATOR_PREFIX
|
||||
..(NOMINATOR_PREFIX + NOMINATORS_PER_VALIDATOR_PER_ERA))
|
||||
.map(|n| IndividualExposure { who: n, value: 0 as Balance })
|
||||
.collect::<Vec<_>>();
|
||||
(v, Exposure { total: 0, own: 0, others })
|
||||
|
||||
Reference in New Issue
Block a user