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
@@ -88,8 +88,12 @@ impl ParseRuntimeVersion {
fn parse_expr(init_expr: &Expr) -> Result<(ParseRuntimeVersion, Vec<Warning>)> {
let init_expr = match init_expr {
Expr::Struct(ref e) => e,
_ =>
return Err(Error::new(init_expr.span(), "expected a struct initializer expression")),
_ => {
return Err(Error::new(
init_expr.span(),
"expected a struct initializer expression",
))
},
};
let mut parsed = ParseRuntimeVersion::default();
@@ -103,8 +107,9 @@ impl ParseRuntimeVersion {
fn parse_field_value(&mut self, field_value: &FieldValue) -> Result<Vec<Warning>> {
let field_name = match field_value.member {
syn::Member::Named(ref ident) => ident,
syn::Member::Unnamed(_) =>
return Err(Error::new(field_value.span(), "only named members must be used")),
syn::Member::Unnamed(_) => {
return Err(Error::new(field_value.span(), "only named members must be used"))
},
};
fn parse_once<T>(
@@ -160,11 +165,12 @@ impl ParseRuntimeVersion {
fn parse_num_literal(expr: &Expr) -> Result<u32> {
let lit = match *expr {
Expr::Lit(ExprLit { lit: Lit::Int(ref lit), .. }) => lit,
_ =>
_ => {
return Err(Error::new(
expr.span(),
"only numeric literals (e.g. `10`) are supported here",
)),
))
},
};
lit.base10_parse::<u32>()
}
@@ -172,11 +178,12 @@ impl ParseRuntimeVersion {
fn parse_num_literal_u8(expr: &Expr) -> Result<u8> {
let lit = match *expr {
Expr::Lit(ExprLit { lit: Lit::Int(ref lit), .. }) => lit,
_ =>
_ => {
return Err(Error::new(
expr.span(),
"only numeric literals (e.g. `10`) are supported here",
)),
))
},
};
lit.base10_parse::<u8>()
}