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
@@ -90,8 +90,8 @@ pub(crate) fn roll_until_next_active(mut end_index: SessionIndex) -> Vec<Account
let planned_era = pezpallet_staking_async::session_rotation::Rotator::<Runtime>::planned_era();
let active_era = pezpallet_staking_async::session_rotation::Rotator::<Runtime>::active_era();
while pezpallet_staking_async::session_rotation::Rotator::<Runtime>::planned_era() ==
planned_era
while pezpallet_staking_async::session_rotation::Rotator::<Runtime>::planned_era()
== planned_era
{
let report = SessionReport {
end_index,
@@ -141,8 +141,8 @@ mod tests {
// - staking-classic is active on RC.
rc::roll_until_matches(
|| {
staking_classic::ActiveEra::<rc::Runtime>::get().map(|a| a.index).unwrap_or(0) ==
1
staking_classic::ActiveEra::<rc::Runtime>::get().map(|a| a.index).unwrap_or(0)
== 1
},
true,
);
@@ -192,8 +192,8 @@ mod tests {
// era.
rc::roll_until_matches(
|| {
pezpallet_session::CurrentIndex::<rc::Runtime>::get() ==
current_session + ah::SessionsPerEra::get() + 1
pezpallet_session::CurrentIndex::<rc::Runtime>::get()
== current_session + ah::SessionsPerEra::get() + 1
},
true,
);
@@ -221,8 +221,8 @@ mod tests {
);
assert_eq!(
ah_client::ValidatorPoints::<rc::Runtime>::get(&11),
(migration_start_block_number - pre_migration_block_number) as u32 *
<<rc::Runtime as ah_client::Config>::PointsPerBlock as Get<u32>>::get()
(migration_start_block_number - pre_migration_block_number) as u32
* <<rc::Runtime as ah_client::Config>::PointsPerBlock as Get<u32>>::get()
);
// Verify buffered mode doesn't send anything to AH