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
+15 -10
View File
@@ -519,8 +519,9 @@ where
self.block_or_best(block)
.and_then(|block| {
let child_info = match ChildType::from_prefixed_key(&storage_key) {
Some((ChildType::ParentKeyId, storage_key)) =>
ChildInfo::new_default(storage_key),
Some((ChildType::ParentKeyId, storage_key)) => {
ChildInfo::new_default(storage_key)
},
None => return Err(pezsp_blockchain::Error::InvalidChildStorageKey),
};
self.client
@@ -545,8 +546,9 @@ where
self.block_or_best(block)
.and_then(|block| {
let child_info = match ChildType::from_prefixed_key(&storage_key) {
Some((ChildType::ParentKeyId, storage_key)) =>
ChildInfo::new_default(storage_key),
Some((ChildType::ParentKeyId, storage_key)) => {
ChildInfo::new_default(storage_key)
},
None => return Err(pezsp_blockchain::Error::InvalidChildStorageKey),
};
self.client.child_storage_keys(block, child_info, Some(&prefix), None)
@@ -566,8 +568,9 @@ where
self.block_or_best(block)
.and_then(|block| {
let child_info = match ChildType::from_prefixed_key(&storage_key) {
Some((ChildType::ParentKeyId, storage_key)) =>
ChildInfo::new_default(storage_key),
Some((ChildType::ParentKeyId, storage_key)) => {
ChildInfo::new_default(storage_key)
},
None => return Err(pezsp_blockchain::Error::InvalidChildStorageKey),
};
self.client.child_storage_keys(
@@ -590,8 +593,9 @@ where
self.block_or_best(block)
.and_then(|block| {
let child_info = match ChildType::from_prefixed_key(&storage_key) {
Some((ChildType::ParentKeyId, storage_key)) =>
ChildInfo::new_default(storage_key),
Some((ChildType::ParentKeyId, storage_key)) => {
ChildInfo::new_default(storage_key)
},
None => return Err(pezsp_blockchain::Error::InvalidChildStorageKey),
};
self.client.child_storage(block, &child_info, &key)
@@ -631,8 +635,9 @@ where
self.block_or_best(block)
.and_then(|block| {
let child_info = match ChildType::from_prefixed_key(&storage_key) {
Some((ChildType::ParentKeyId, storage_key)) =>
ChildInfo::new_default(storage_key),
Some((ChildType::ParentKeyId, storage_key)) => {
ChildInfo::new_default(storage_key)
},
None => return Err(pezsp_blockchain::Error::InvalidChildStorageKey),
};
self.client.child_storage_hash(block, &child_info, &key)
+3 -2
View File
@@ -130,8 +130,9 @@ impl StatementApiServer for StatementStore {
SubmitResult::New(_) | SubmitResult::Known => Ok(()),
// `KnownExpired` should not happen. Expired statements submitted with
// `StatementSource::Rpc` should be renewed.
SubmitResult::KnownExpired =>
Err(Error::StatementStore("Submitted an expired statement.".into()).into()),
SubmitResult::KnownExpired => {
Err(Error::StatementStore("Submitted an expired statement.".into()).into())
},
SubmitResult::Bad(e) => Err(Error::StatementStore(e.into()).into()),
SubmitResult::Ignored => Err(Error::StatementStore("Store is full.".into()).into()),
SubmitResult::InternalError(e) => Err(Error::StatementStore(e.to_string()).into()),
+6 -4
View File
@@ -98,15 +98,17 @@ fn api<T: Into<Option<Status>>>(sync: T) -> RpcModule<System<Block>> {
Request::NetworkAddReservedPeer(peer, sender) => {
let _ = match pezsc_network::config::parse_str_addr(&peer) {
Ok(_) => sender.send(Ok(())),
Err(s) =>
sender.send(Err(error::Error::MalformattedPeerArg(s.to_string()))),
Err(s) => {
sender.send(Err(error::Error::MalformattedPeerArg(s.to_string())))
},
};
},
Request::NetworkRemoveReservedPeer(peer, sender) => {
let _ = match peer.parse::<PeerId>() {
Ok(_) => sender.send(Ok(())),
Err(s) =>
sender.send(Err(error::Error::MalformattedPeerArg(s.to_string()))),
Err(s) => {
sender.send(Err(error::Error::MalformattedPeerArg(s.to_string())))
},
};
},
Request::NetworkReservedPeers(sender) => {