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
@@ -99,8 +99,9 @@ where
async move {
Ok(match maybe_intercept {
InterceptRequest::Deny =>
http_response(StatusCode::METHOD_NOT_ALLOWED, HttpBody::empty()),
InterceptRequest::Deny => {
http_response(StatusCode::METHOD_NOT_ALLOWED, HttpBody::empty())
},
InterceptRequest::No => fut.await.map_err(|err| err.into())?,
InterceptRequest::Health => {
let res = fut.await.map_err(|err| err.into())?;
@@ -114,9 +115,11 @@ where
let res = fut.await.map_err(|err| err.into())?;
match parse_rpc_response(res.into_body()).await {
Ok(health)
if (!health.is_syncing && health.peers > 0) ||
!health.should_have_peers =>
http_ok_response(HttpBody::empty()),
if (!health.is_syncing && health.peers > 0)
|| !health.should_have_peers =>
{
http_ok_response(HttpBody::empty())
},
_ => http_internal_error(),
}
},
@@ -188,18 +191,20 @@ enum InterceptRequest {
impl InterceptRequest {
fn from_http(req: &HttpRequest) -> InterceptRequest {
match req.uri().path() {
"/health" =>
"/health" => {
if req.method() == http::Method::GET {
InterceptRequest::Health
} else {
InterceptRequest::Deny
},
"/health/readiness" =>
}
},
"/health/readiness" => {
if req.method() == http::Method::GET {
InterceptRequest::Readiness
} else {
InterceptRequest::Deny
},
}
},
// Forward all other requests to the RPC server.
_ => InterceptRequest::No,
}