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 3208f208c0
commit abc4c3989b
898 changed files with 8671 additions and 6432 deletions
+11 -9
View File
@@ -442,9 +442,9 @@ impl QueueConfigData {
///
/// Should be called prior to accepting this as new config.
pub fn validate<T: crate::Config>(&self) -> pezsp_runtime::DispatchResult {
if self.resume_threshold < self.suspend_threshold &&
self.suspend_threshold <= self.drop_threshold &&
self.resume_threshold > 0
if self.resume_threshold < self.suspend_threshold
&& self.suspend_threshold <= self.drop_threshold
&& self.resume_threshold > 0
{
Ok(())
} else {
@@ -946,8 +946,8 @@ impl<T: Config> XcmpMessageHandler for Pezpallet<T> {
}
}
},
XcmpMessageFormat::ConcatenatedVersionedXcm |
XcmpMessageFormat::ConcatenatedOpaqueVersionedXcm => {
XcmpMessageFormat::ConcatenatedVersionedXcm
| XcmpMessageFormat::ConcatenatedOpaqueVersionedXcm => {
let encoding = match format {
XcmpMessageFormat::ConcatenatedVersionedXcm => XcmEncoding::Simple,
XcmpMessageFormat::ConcatenatedOpaqueVersionedXcm => XcmEncoding::Double,
@@ -1223,10 +1223,12 @@ impl<T: Config> InspectMessageQueues for Pezpallet<T> {
let mut decoded_messages = Vec::new();
while !data.is_empty() {
let message_bytes = match decoded_format {
XcmpMessageFormat::ConcatenatedVersionedXcm =>
Self::take_first_concatenated_xcm(data, &mut WeightMeter::new()),
XcmpMessageFormat::ConcatenatedOpaqueVersionedXcm =>
Self::take_first_concatenated_opaque_xcm(data),
XcmpMessageFormat::ConcatenatedVersionedXcm => {
Self::take_first_concatenated_xcm(data, &mut WeightMeter::new())
},
XcmpMessageFormat::ConcatenatedOpaqueVersionedXcm => {
Self::take_first_concatenated_opaque_xcm(data)
},
unexpected_format => {
panic!("Unexpected XCMP format: {unexpected_format:?}!")
},
@@ -279,9 +279,9 @@ pub mod v4 {
let pre_default = v2::QueueConfigData::default();
// If the previous values are the default ones, let's replace them with the new
// default.
if pre.suspend_threshold == pre_default.suspend_threshold &&
pre.drop_threshold == pre_default.drop_threshold &&
pre.resume_threshold == pre_default.resume_threshold
if pre.suspend_threshold == pre_default.suspend_threshold
&& pre.drop_threshold == pre_default.drop_threshold
&& pre.resume_threshold == pre_default.resume_threshold
{
return QueueConfigData::default();
}
+2 -2
View File
@@ -126,8 +126,8 @@ impl<RuntimeOrigin: OriginTrait> ConvertOrigin<RuntimeOrigin>
kind: OriginKind,
) -> Result<RuntimeOrigin, Location> {
let origin = origin.into();
if kind == OriginKind::Superuser &&
matches!(
if kind == OriginKind::Superuser
&& matches!(
origin.unpack(),
(1, [Teyrchain(id)]) if ParaId::from(*id).is_system(),
) {