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 3208f208c0
commit abc4c3989b
898 changed files with 8671 additions and 6432 deletions
@@ -583,12 +583,13 @@ impl UnhandledResponse {
// it could also happen in the case that we had a request in-flight
// and the request entry was garbage-collected on outdated relay parent.
let entry = match manager.requests.get_mut(&identifier) {
None =>
None => {
return ResponseValidationOutput {
requested_peer,
reputation_changes: Vec::new(),
request_status: CandidateRequestStatus::Outdated,
},
}
},
Some(e) => e,
};
@@ -710,8 +711,8 @@ fn validate_complete_response(
return invalid_candidate_output(COST_INVALID_RESPONSE);
}
if response.candidate_receipt.descriptor.persisted_validation_data_hash() !=
response.persisted_validation_data.hash()
if response.candidate_receipt.descriptor.persisted_validation_data_hash()
!= response.persisted_validation_data.hash()
{
return invalid_candidate_output(COST_INVALID_RESPONSE);
}
@@ -730,8 +731,8 @@ fn validate_complete_response(
let candidate_hash = response.candidate_receipt.hash();
// V2 descriptors are invalid if not enabled by runtime.
if !allow_v2_descriptors &&
response.candidate_receipt.descriptor.version() == CandidateDescriptorVersion::V2
if !allow_v2_descriptors
&& response.candidate_receipt.descriptor.version() == CandidateDescriptorVersion::V2
{
gum::debug!(
target: LOG_TARGET,
@@ -794,8 +795,8 @@ fn validate_complete_response(
};
// ensure statement is on the correct candidate hash.
if unchecked_statement.unchecked_payload().candidate_hash() !=
&identifier.candidate_hash
if unchecked_statement.unchecked_payload().candidate_hash()
!= &identifier.candidate_hash
{
rep_changes.push((requested_peer, COST_UNREQUESTED_RESPONSE_STATEMENT));
continue;