apply new rustfmt.toml changes, fix some clippy lints
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
0317cc8cc5
commit
77e0b76408
296 changed files with 7147 additions and 4300 deletions
12
rustfmt.toml
12
rustfmt.toml
|
@ -2,9 +2,8 @@ array_width = 80
|
|||
chain_width = 60
|
||||
comment_width = 80
|
||||
condense_wildcard_suffixes = true
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
fn_call_width = 80
|
||||
fn_params_layout = "Compressed"
|
||||
fn_single_line = true
|
||||
format_code_in_doc_comments = true
|
||||
format_macro_bodies = true
|
||||
|
@ -14,13 +13,20 @@ group_imports = "StdExternalCrate"
|
|||
hard_tabs = true
|
||||
hex_literal_case = "Upper"
|
||||
imports_granularity = "Crate"
|
||||
match_arm_blocks = false
|
||||
match_arm_leading_pipes = "Always"
|
||||
match_block_trailing_comma = true
|
||||
max_width = 120
|
||||
max_width = 98
|
||||
newline_style = "Unix"
|
||||
normalize_comments = false
|
||||
overflow_delimited_expr = true
|
||||
reorder_impl_items = true
|
||||
reorder_imports = true
|
||||
single_line_if_else_max_width = 60
|
||||
single_line_let_else_max_width = 80
|
||||
struct_lit_width = 40
|
||||
tab_spaces = 4
|
||||
unstable_features = true
|
||||
use_field_init_shorthand = true
|
||||
use_small_heuristics = "Off"
|
||||
use_try_shorthand = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue