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:
@@ -261,8 +261,9 @@ where
|
||||
}
|
||||
|
||||
let phase = match warp_sync_config {
|
||||
WarpSyncConfig::WithProvider(warp_sync_provider) =>
|
||||
Phase::WaitingForPeers { warp_sync_provider },
|
||||
WarpSyncConfig::WithProvider(warp_sync_provider) => {
|
||||
Phase::WaitingForPeers { warp_sync_provider }
|
||||
},
|
||||
WarpSyncConfig::WithTarget(target_header) => Phase::TargetBlock(target_header),
|
||||
};
|
||||
|
||||
@@ -558,9 +559,9 @@ where
|
||||
// Find a random peer that is synced as much as peer majority and is above
|
||||
// `min_best_number`.
|
||||
for (peer_id, peer) in self.peers.iter_mut() {
|
||||
if peer.state.is_available() &&
|
||||
peer.best_number >= threshold &&
|
||||
self.disconnected_peers.is_peer_available(peer_id)
|
||||
if peer.state.is_available()
|
||||
&& peer.best_number >= threshold
|
||||
&& self.disconnected_peers.is_peer_available(peer_id)
|
||||
{
|
||||
peer.state = new_state;
|
||||
return Some(*peer_id);
|
||||
@@ -632,9 +633,9 @@ where
|
||||
peer_id,
|
||||
BlockRequest::<B> {
|
||||
id: 0,
|
||||
fields: BlockAttributes::HEADER |
|
||||
BlockAttributes::BODY |
|
||||
BlockAttributes::JUSTIFICATION,
|
||||
fields: BlockAttributes::HEADER
|
||||
| BlockAttributes::BODY
|
||||
| BlockAttributes::JUSTIFICATION,
|
||||
from: FromBlock::Hash(target_hash),
|
||||
direction: Direction::Ascending,
|
||||
max: Some(1),
|
||||
|
||||
Reference in New Issue
Block a user