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
+18 -14
View File
@@ -80,16 +80,19 @@ pub mod data {
fn needs_migration(&self, minimal_allowed_xcm_version: XcmVersion) -> bool {
match &self {
QueryStatus::Pending { responder, maybe_match_querier, .. } =>
responder.identify_version() < minimal_allowed_xcm_version ||
maybe_match_querier
QueryStatus::Pending { responder, maybe_match_querier, .. } => {
responder.identify_version() < minimal_allowed_xcm_version
|| maybe_match_querier
.as_ref()
.map(|v| v.identify_version() < minimal_allowed_xcm_version)
.unwrap_or(false),
QueryStatus::VersionNotifier { origin, .. } =>
origin.identify_version() < minimal_allowed_xcm_version,
QueryStatus::Ready { response, .. } =>
response.identify_version() < minimal_allowed_xcm_version,
.unwrap_or(false)
},
QueryStatus::VersionNotifier { origin, .. } => {
origin.identify_version() < minimal_allowed_xcm_version
},
QueryStatus::Ready { response, .. } => {
response.identify_version() < minimal_allowed_xcm_version
},
}
}
@@ -131,8 +134,8 @@ pub mod data {
type MigratedData = Self;
fn needs_migration(&self, minimal_allowed_xcm_version: XcmVersion) -> bool {
self.0 < minimal_allowed_xcm_version ||
self.2.identify_version() < minimal_allowed_xcm_version
self.0 < minimal_allowed_xcm_version
|| self.2.identify_version() < minimal_allowed_xcm_version
}
fn try_migrate(self, to_xcm_version: XcmVersion) -> Result<Option<Self::MigratedData>, ()> {
@@ -152,8 +155,8 @@ pub mod data {
type MigratedData = Self;
fn needs_migration(&self, minimal_allowed_xcm_version: XcmVersion) -> bool {
self.owner.identify_version() < minimal_allowed_xcm_version ||
self.locker.identify_version() < minimal_allowed_xcm_version
self.owner.identify_version() < minimal_allowed_xcm_version
|| self.locker.identify_version() < minimal_allowed_xcm_version
}
fn try_migrate(self, to_xcm_version: XcmVersion) -> Result<Option<Self::MigratedData>, ()> {
@@ -177,8 +180,9 @@ pub mod data {
type MigratedData = (VersionedLocation, AuthorizedAliasesEntry<TicketOf<T>, M>);
fn needs_migration(&self, required_version: XcmVersion) -> bool {
self.0.identify_version() != required_version ||
self.1
self.0.identify_version() != required_version
|| self
.1
.aliasers
.iter()
.any(|alias| alias.location.identify_version() != required_version)