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
@@ -159,13 +159,13 @@ pub type TeyrchainPalletXcm = pezpallet_xcm::Pezpallet<teyrchain::Runtime>;
// We check XCM messages recursively for blocklisted messages
fn recursively_matches_blocklisted_messages(message: &Instruction<()>) -> bool {
match message {
DepositReserveAsset { xcm, .. } |
ExportMessage { xcm, .. } |
InitiateReserveWithdraw { xcm, .. } |
InitiateTeleport { xcm, .. } |
TransferReserveAsset { xcm, .. } |
SetErrorHandler(xcm) |
SetAppendix(xcm) => xcm.iter().any(recursively_matches_blocklisted_messages),
DepositReserveAsset { xcm, .. }
| ExportMessage { xcm, .. }
| InitiateReserveWithdraw { xcm, .. }
| InitiateTeleport { xcm, .. }
| TransferReserveAsset { xcm, .. }
| SetErrorHandler(xcm)
| SetAppendix(xcm) => xcm.iter().any(recursively_matches_blocklisted_messages),
// The blocklisted message is the Transact instruction.
m => matches!(m, Transact { .. }),
}
@@ -238,8 +238,9 @@ pub mod mock_msg_queue {
max_weight,
Weight::zero(),
) {
Outcome::Error(InstructionError { error, .. }) =>
(Err(error), Event::Fail(Some(hash), error)),
Outcome::Error(InstructionError { error, .. }) => {
(Err(error), Event::Fail(Some(hash), error))
},
Outcome::Complete { used } => (Ok(used), Event::Success(Some(hash))),
// As far as the caller is concerned, this was dispatched without error, so
// we just report the weight used.
@@ -108,10 +108,12 @@ pub mod pezpallet {
max_weight,
Weight::zero(),
) {
Outcome::Error(InstructionError { error, .. }) =>
(Err(error), Event::Fail { message_id: Some(hash), error }),
Outcome::Complete { used } =>
(Ok(used), Event::Success { message_id: Some(hash) }),
Outcome::Error(InstructionError { error, .. }) => {
(Err(error), Event::Fail { message_id: Some(hash), error })
},
Outcome::Complete { used } => {
(Ok(used), Event::Success { message_id: Some(hash) })
},
// As far as the caller is concerned, this was dispatched without error, so
// we just report the weight used.
Outcome::Incomplete {
@@ -167,8 +169,9 @@ pub mod pezpallet {
Self::deposit_event(Event::InvalidFormat { message_id: id });
},
Ok(versioned) => match Xcm::try_from(versioned) {
Err(()) =>
Self::deposit_event(Event::UnsupportedVersion { message_id: id }),
Err(()) => {
Self::deposit_event(Event::UnsupportedVersion { message_id: id })
},
Ok(x) => {
let outcome = T::XcmExecutor::prepare_and_execute(
Parent,