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
@@ -792,8 +792,8 @@ impl<T: Config> Pezpallet<T> {
match maybe_amount_validated {
Ok(amount_validated) => ensure!(
amount_validated >=
effective_minimum_backing_votes(group_vals.len(), minimum_backing_votes),
amount_validated
>= effective_minimum_backing_votes(group_vals.len(), minimum_backing_votes),
Error::<T>::InsufficientBacking,
),
Err(()) => {
@@ -1274,8 +1274,8 @@ impl<T: Config> CandidateCheckContext<T> {
);
ensure!(
backed_candidate_receipt.descriptor.para_head() ==
backed_candidate_receipt.commitments.head_data.hash(),
backed_candidate_receipt.descriptor.para_head()
== backed_candidate_receipt.commitments.head_data.hash(),
Error::<T>::ParaHeadMismatch,
);
@@ -151,8 +151,8 @@ pub(crate) fn back_candidate(
|i| Some(validators[group[i].0 as usize].public().into()),
)
.ok()
.unwrap_or(0) >=
threshold;
.unwrap_or(0)
>= threshold;
match kind {
BackingKind::Unanimous | BackingKind::Threshold => assert!(successfully_backed),
@@ -207,8 +207,8 @@ pub(crate) fn run_to_block(
}
pub(crate) fn expected_bits() -> usize {
paras::Teyrchains::<Test>::get().len() +
configuration::ActiveConfig::<Test>::get().scheduler_params.num_cores as usize
paras::Teyrchains::<Test>::get().len()
+ configuration::ActiveConfig::<Test>::get().scheduler_params.num_cores as usize
}
fn default_bitfield() -> AvailabilityBitfield {