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
+24 -16
View File
@@ -151,10 +151,12 @@ impl<
let amount: Currency::Balance =
Matcher::matches_fungible(what).ok_or(Error::AssetNotHandled)?;
match CheckedAccount::get() {
Some((checked_account, MintLocation::Local)) =>
Self::can_reduce_checked(checked_account, amount),
Some((checked_account, MintLocation::NonLocal)) =>
Self::can_accrue_checked(checked_account, amount),
Some((checked_account, MintLocation::Local)) => {
Self::can_reduce_checked(checked_account, amount)
},
Some((checked_account, MintLocation::NonLocal)) => {
Self::can_accrue_checked(checked_account, amount)
},
None => Ok(()),
}
}
@@ -163,10 +165,12 @@ impl<
tracing::trace!(target: "xcm::currency_adapter", ?origin, ?what, "check_in origin");
if let Some(amount) = Matcher::matches_fungible(what) {
match CheckedAccount::get() {
Some((checked_account, MintLocation::Local)) =>
Self::reduce_checked(checked_account, amount),
Some((checked_account, MintLocation::NonLocal)) =>
Self::accrue_checked(checked_account, amount),
Some((checked_account, MintLocation::Local)) => {
Self::reduce_checked(checked_account, amount)
},
Some((checked_account, MintLocation::NonLocal)) => {
Self::accrue_checked(checked_account, amount)
},
None => (),
}
}
@@ -176,10 +180,12 @@ impl<
tracing::trace!(target: "xcm::currency_adapter", ?dest, ?what, "can_check_out");
let amount = Matcher::matches_fungible(what).ok_or(Error::AssetNotHandled)?;
match CheckedAccount::get() {
Some((checked_account, MintLocation::Local)) =>
Self::can_accrue_checked(checked_account, amount),
Some((checked_account, MintLocation::NonLocal)) =>
Self::can_reduce_checked(checked_account, amount),
Some((checked_account, MintLocation::Local)) => {
Self::can_accrue_checked(checked_account, amount)
},
Some((checked_account, MintLocation::NonLocal)) => {
Self::can_reduce_checked(checked_account, amount)
},
None => Ok(()),
}
}
@@ -188,10 +194,12 @@ impl<
tracing::trace!(target: "xcm::currency_adapter", ?dest, ?what, "check_out");
if let Some(amount) = Matcher::matches_fungible(what) {
match CheckedAccount::get() {
Some((checked_account, MintLocation::Local)) =>
Self::accrue_checked(checked_account, amount),
Some((checked_account, MintLocation::NonLocal)) =>
Self::reduce_checked(checked_account, amount),
Some((checked_account, MintLocation::Local)) => {
Self::accrue_checked(checked_account, amount)
},
Some((checked_account, MintLocation::NonLocal)) => {
Self::reduce_checked(checked_account, amount)
},
None => (),
}
}