Use cargo fmt and conform to Style Guide (mostly)
This commit is contained in:
parent
1f1eac6369
commit
2982a13bc2
15 changed files with 980 additions and 888 deletions
18
rustfmt.toml
Normal file
18
rustfmt.toml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
edition = "2024"
|
||||
style_edition = "2024"
|
||||
|
||||
# Modifications to the standard style
|
||||
blank_lines_upper_bound = 3
|
||||
tab_spaces = 2
|
||||
use_field_init_shorthand = true
|
||||
|
||||
# Stricter subset of standard style
|
||||
condense_wildcard_suffixes = true
|
||||
format_macro_matchers = true
|
||||
group_imports = "StdExternalCrate"
|
||||
hex_literal_case = "Upper"
|
||||
imports_granularity = "Module"
|
||||
newline_style = "Unix"
|
||||
normalize_comments = true
|
||||
normalize_doc_attributes = true
|
||||
wrap_comments = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue