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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user