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
@@ -220,7 +220,7 @@ impl<B: BlockT> Future for GossipEngine<B> {
},
NotificationEvent::NotificationStreamOpened {
peer, handshake, ..
} =>
} => {
if let Some(role) = this.network.peer_role(peer, handshake) {
this.state_machine.new_peer(
&mut this.notification_service,
@@ -229,7 +229,8 @@ impl<B: BlockT> Future for GossipEngine<B> {
);
} else {
log::debug!(target: "gossip", "role for {peer} couldn't be determined");
},
}
},
NotificationEvent::NotificationStreamClosed { peer } => {
this.state_machine
.peer_disconnected(&mut this.notification_service, peer);
@@ -254,10 +255,12 @@ impl<B: BlockT> Future for GossipEngine<B> {
match sync_event_stream {
Poll::Ready(Some(event)) => match event {
SyncEvent::PeerConnected(remote) =>
this.network.add_set_reserved(remote, this.protocol.clone()),
SyncEvent::PeerDisconnected(remote) =>
this.network.remove_set_reserved(remote, this.protocol.clone()),
SyncEvent::PeerConnected(remote) => {
this.network.add_set_reserved(remote, this.protocol.clone())
},
SyncEvent::PeerDisconnected(remote) => {
this.network.remove_set_reserved(remote, this.protocol.clone())
},
},
// The sync event stream closed. Do the same for [`GossipValidator`].
Poll::Ready(None) => {
@@ -116,12 +116,13 @@ where
for (id, ref mut peer) in peers.iter_mut() {
for (message_hash, topic, message) in messages.clone() {
let intent = match intent {
MessageIntent::Broadcast { .. } =>
MessageIntent::Broadcast { .. } => {
if peer.known_messages.contains(message_hash) {
continue;
} else {
MessageIntent::Broadcast
},
}
},
MessageIntent::PeriodicRebroadcast => {
if peer.known_messages.contains(message_hash) {
MessageIntent::PeriodicRebroadcast