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:
@@ -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:?}!")
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user