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
@@ -99,8 +99,9 @@ mod example_runtime {
fn try_origin(o: RuntimeOrigin) -> Result<Self::Success, RuntimeOrigin> {
match o.clone().into() {
Ok(pezpallet_coownership::Origin::<Runtime>::Coowners(first, second)) =>
Ok((first, second)),
Ok(pezpallet_coownership::Origin::<Runtime>::Coowners(first, second)) => {
Ok((first, second))
},
_ => Err(o),
}
}
@@ -41,9 +41,9 @@ fn lazy_migration_works() {
}
// Give it enough weight do do exactly 16 iterations:
let limit = <T as pezpallet_migrations::Config>::WeightInfo::progress_mbms_none() +
pezpallet_migrations::Pezpallet::<T>::exec_migration_max_weight() +
weights::BizinikiwiWeight::<T>::step() * 16;
let limit = <T as pezpallet_migrations::Config>::WeightInfo::progress_mbms_none()
+ pezpallet_migrations::Pezpallet::<T>::exec_migration_max_weight()
+ weights::BizinikiwiWeight::<T>::step() * 16;
MigratorServiceWeight::set(&limit);
System::set_block_number(1);
@@ -207,10 +207,12 @@ pub mod pezpallet {
let should_send = Self::choose_transaction_type(block_number);
let res = match should_send {
TransactionType::Signed => Self::fetch_price_and_send_signed(),
TransactionType::UnsignedForAny =>
Self::fetch_price_and_send_unsigned_for_any_account(block_number),
TransactionType::UnsignedForAll =>
Self::fetch_price_and_send_unsigned_for_all_accounts(block_number),
TransactionType::UnsignedForAny => {
Self::fetch_price_and_send_unsigned_for_any_account(block_number)
},
TransactionType::UnsignedForAll => {
Self::fetch_price_and_send_unsigned_for_all_accounts(block_number)
},
TransactionType::Raw => Self::fetch_price_and_send_raw_unsigned(block_number),
TransactionType::None => Ok(()),
};
@@ -403,8 +405,9 @@ impl<T: Config> Pezpallet<T> {
match last_send {
// If we already have a value in storage and the block number is recent enough
// we avoid sending another transaction at this time.
Ok(Some(block)) if block_number < block + T::GracePeriod::get() =>
Err(RECENTLY_SENT),
Ok(Some(block)) if block_number < block + T::GracePeriod::get() => {
Err(RECENTLY_SENT)
},
// In every other case we attempt to acquire the lock and send a transaction.
_ => Ok(block_number),
}