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:
2025-12-22 17:12:58 +03:00
parent 65b7f5e640
commit 4c8f281051
898 changed files with 8671 additions and 6432 deletions
@@ -1769,7 +1769,7 @@ impl<T: Config> Pezpallet<T> {
match SignedSubmissionNextIndex::<T>::get() {
0 => Ok(()),
next =>
next => {
if SignedSubmissionsMap::<T>::get(next).is_some() {
return Err(
"The next submissions index should not be in the submissions maps already"
@@ -1777,7 +1777,8 @@ impl<T: Config> Pezpallet<T> {
);
} else {
Ok(())
},
}
},
}
}
@@ -1786,12 +1787,13 @@ impl<T: Config> Pezpallet<T> {
fn try_state_phase_off() -> Result<(), TryRuntimeError> {
match CurrentPhase::<T>::get().is_off() {
false => Ok(()),
true =>
true => {
if Snapshot::<T>::get().is_some() {
Err("Snapshot must be none when in Phase::Off".into())
} else {
Ok(())
},
}
},
}
}
}
@@ -2749,8 +2751,8 @@ mod tests {
let mut active = 1;
while weight_with(active)
.all_lte(<Runtime as pezframe_system::Config>::BlockWeights::get().max_block) ||
active == all_voters
.all_lte(<Runtime as pezframe_system::Config>::BlockWeights::get().max_block)
|| active == all_voters
{
active += 1;
}