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
@@ -351,8 +351,8 @@ impl<AccountId> SessionReport<AccountId> {
/// Merge oneself with another instance.
pub fn merge(mut self, other: Self) -> Result<Self, UnexpectedKind> {
if self.end_index != other.end_index ||
self.activation_timestamp != other.activation_timestamp
if self.end_index != other.end_index
|| self.activation_timestamp != other.activation_timestamp
{
// Must be some bug -- don't merge.
return Err(UnexpectedKind::SessionReportIntegrityFailed);
@@ -513,14 +513,17 @@ where
{
Ok((_ticket, price)) => {
log::debug!(target: "runtime::staking-async::xcm", "📨 validated, price: {price:?}");
return Ok(current_messages.into_iter().map(ToXcm::convert).collect::<Vec<_>>());
return Ok(current_messages
.into_iter()
.map(ToXcm::convert)
.collect::<Vec<_>>());
},
Err(SendError::ExceedsMaxMessageSize) => {
log::debug!(target: "runtime::staking-async::xcm", "📨 ExceedsMaxMessageSize -- reducing chunk_size");
chunk_size = chunk_size.saturating_div(2);
steps += 1;
if maybe_max_steps.is_some_and(|max_steps| steps > max_steps) ||
chunk_size.is_zero()
if maybe_max_steps.is_some_and(|max_steps| steps > max_steps)
|| chunk_size.is_zero()
{
log::error!(target: "runtime::staking-async::xcm", "📨 Exceeded max steps or chunk_size = 0");
return Err(SendError::ExceedsMaxMessageSize);