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:
@@ -251,8 +251,9 @@ where
|
||||
fn block_header(&self, hash: Hash) -> Result<PezkuwiHeader, ConsensusError> {
|
||||
match HeaderProvider::header(self.backend.header_provider(), hash) {
|
||||
Ok(Some(header)) => Ok(header),
|
||||
Ok(None) =>
|
||||
Err(ConsensusError::ChainLookup(format!("Missing header with hash {:?}", hash,))),
|
||||
Ok(None) => {
|
||||
Err(ConsensusError::ChainLookup(format!("Missing header with hash {:?}", hash,)))
|
||||
},
|
||||
Err(e) => Err(ConsensusError::ChainLookup(format!(
|
||||
"Lookup failed for header with hash {:?}: {:?}",
|
||||
hash, e,
|
||||
@@ -263,8 +264,9 @@ where
|
||||
fn block_number(&self, hash: Hash) -> Result<BlockNumber, ConsensusError> {
|
||||
match HeaderProvider::number(self.backend.header_provider(), hash) {
|
||||
Ok(Some(number)) => Ok(number),
|
||||
Ok(None) =>
|
||||
Err(ConsensusError::ChainLookup(format!("Missing number with hash {:?}", hash,))),
|
||||
Ok(None) => {
|
||||
Err(ConsensusError::ChainLookup(format!("Missing number with hash {:?}", hash,)))
|
||||
},
|
||||
Err(e) => Err(ConsensusError::ChainLookup(format!(
|
||||
"Lookup failed for number with hash {:?}: {:?}",
|
||||
hash, e,
|
||||
@@ -490,8 +492,9 @@ where
|
||||
{
|
||||
// No approved ancestors means target hash is maximal vote.
|
||||
None => (target_hash, target_number, Vec::new()),
|
||||
Some(HighestApprovedAncestorBlock { number, hash, descriptions }) =>
|
||||
(hash, number, descriptions),
|
||||
Some(HighestApprovedAncestorBlock { number, hash, descriptions }) => {
|
||||
(hash, number, descriptions)
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
@@ -523,8 +526,8 @@ where
|
||||
|
||||
let (lag, subchain_head) = {
|
||||
// Prevent sending flawed data to the dispute-coordinator.
|
||||
if Some(subchain_block_descriptions.len() as _) !=
|
||||
subchain_number.checked_sub(target_number)
|
||||
if Some(subchain_block_descriptions.len() as _)
|
||||
!= subchain_number.checked_sub(target_number)
|
||||
{
|
||||
gum::error!(
|
||||
LOG_TARGET,
|
||||
|
||||
Reference in New Issue
Block a user