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
@@ -413,21 +413,24 @@ impl View {
match rx.await {
Ok(Ok(Some(header))) => header,
Ok(Ok(None)) =>
Ok(Ok(None)) => {
return Err(FetchError::BlockHeaderUnavailable(
leaf_hash,
BlockHeaderUnavailableReason::Unknown,
)),
Ok(Err(e)) =>
))
},
Ok(Err(e)) => {
return Err(FetchError::BlockHeaderUnavailable(
leaf_hash,
BlockHeaderUnavailableReason::Internal(e),
)),
Err(_) =>
))
},
Err(_) => {
return Err(FetchError::BlockHeaderUnavailable(
leaf_hash,
BlockHeaderUnavailableReason::SubsystemUnavailable,
)),
))
},
}
};
@@ -467,21 +470,24 @@ impl View {
let header = match rx.await {
Ok(Ok(Some(header))) => header,
Ok(Ok(None)) =>
Ok(Ok(None)) => {
return Err(FetchError::BlockHeaderUnavailable(
next_ancestor_hash,
BlockHeaderUnavailableReason::Unknown,
)),
Ok(Err(e)) =>
))
},
Ok(Err(e)) => {
return Err(FetchError::BlockHeaderUnavailable(
next_ancestor_hash,
BlockHeaderUnavailableReason::Internal(e),
)),
Err(_) =>
))
},
Err(_) => {
return Err(FetchError::BlockHeaderUnavailable(
next_ancestor_hash,
BlockHeaderUnavailableReason::SubsystemUnavailable,
)),
))
},
};
self.block_info_storage.insert(
+3 -2
View File
@@ -217,8 +217,9 @@ pub mod paritydb_impl {
}
return match ops.next() {
None => None,
Some(DBOp::Insert { col, key, value }) =>
Some((col as u8, key.to_vec(), Some(value))),
Some(DBOp::Insert { col, key, value }) => {
Some((col as u8, key.to_vec(), Some(value)))
},
Some(DBOp::Delete { col, key }) => Some((col as u8, key.to_vec(), None)),
Some(DBOp::DeletePrefix { col, prefix }) => {
let col = col as u8;
@@ -724,8 +724,9 @@ pub fn validate_commitments(
if commitments.new_validation_code.is_some() {
match constraints.upgrade_restriction {
None => {},
Some(UpgradeRestriction::Present) =>
return Err(FragmentValidityError::CodeUpgradeRestricted),
Some(UpgradeRestriction::Present) => {
return Err(FragmentValidityError::CodeUpgradeRestricted)
},
}
}