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
@@ -349,8 +349,8 @@ mod benchmarks {
// commission of 50% deducted here.
assert!(
T::StakeAdapter::active_stake(Pool::from(scenario.origin1)) >=
scenario.dest_weight / 2u32.into()
T::StakeAdapter::active_stake(Pool::from(scenario.origin1))
>= scenario.dest_weight / 2u32.into()
);
}
@@ -989,8 +989,8 @@ mod benchmarks {
assert_eq!(PoolMembers::<T>::get(&depositor).unwrap().total_balance(), deposit_amount);
// verify delegated balance.
assert!(
T::StakeAdapter::member_delegation_balance(Member::from(depositor.clone())) ==
Some(deposit_amount),
T::StakeAdapter::member_delegation_balance(Member::from(depositor.clone()))
== Some(deposit_amount),
);
// ugly type conversion between balances of pezpallet staking and pools (which really are
@@ -1013,8 +1013,8 @@ mod benchmarks {
);
// verify delegated balance are not yet slashed.
assert!(
T::StakeAdapter::member_delegation_balance(Member::from(depositor.clone())) ==
Some(deposit_amount),
T::StakeAdapter::member_delegation_balance(Member::from(depositor.clone()))
== Some(deposit_amount),
);
// Fill member's sub pools for the worst case.
@@ -1049,8 +1049,8 @@ mod benchmarks {
deposit_amount / 2u32.into()
);
assert!(
T::StakeAdapter::member_delegation_balance(Member::from(depositor.clone())) ==
Some(deposit_amount / 2u32.into()),
T::StakeAdapter::member_delegation_balance(Member::from(depositor.clone()))
== Some(deposit_amount / 2u32.into()),
);
}
@@ -1168,8 +1168,8 @@ mod benchmarks {
}
// verify balances once more.
assert!(
T::StakeAdapter::member_delegation_balance(Member::from(depositor.clone())) ==
Some(deposit_amount),
T::StakeAdapter::member_delegation_balance(Member::from(depositor.clone()))
== Some(deposit_amount),
);
assert_eq!(PoolMembers::<T>::get(&depositor).unwrap().total_balance(), deposit_amount);
}