mirror of
https://github.com/RGBCube/alejandra
synced 2025-08-01 21:17:45 +00:00
chore: cleaner rustfmt args
This commit is contained in:
parent
825377e668
commit
7179111c29
1 changed files with 17 additions and 1 deletions
18
treefmt.toml
18
treefmt.toml
|
@ -25,7 +25,23 @@ command = "rustfmt"
|
||||||
options = [
|
options = [
|
||||||
"--edition", "2021",
|
"--edition", "2021",
|
||||||
"--config",
|
"--config",
|
||||||
"enum_discrim_align_threshold=999,format_code_in_doc_comments=true,format_generated_files=true,format_macro_bodies=true,format_macro_matchers=true,format_strings=true,hex_literal_case=Lower,imports_granularity=Crate,imports_layout=HorizontalVertical,max_width=80,normalize_comments=true,normalize_doc_attributes=true,reorder_impl_items=true,struct_field_align_threshold=999,unstable_features=true,use_small_heuristics=Max,version=Two",
|
"""enum_discrim_align_threshold=999,\
|
||||||
|
format_code_in_doc_comments=true,\
|
||||||
|
format_generated_files=true,\
|
||||||
|
format_macro_bodies=true,\
|
||||||
|
format_macro_matchers=true,\
|
||||||
|
format_strings=true,\
|
||||||
|
hex_literal_case=Lower,\
|
||||||
|
imports_granularity=Crate,\
|
||||||
|
imports_layout=HorizontalVertical,\
|
||||||
|
max_width=80,\
|
||||||
|
normalize_comments=true,\
|
||||||
|
normalize_doc_attributes=true,\
|
||||||
|
reorder_impl_items=true,\
|
||||||
|
struct_field_align_threshold=999,\
|
||||||
|
unstable_features=true,\
|
||||||
|
use_small_heuristics=Max,\
|
||||||
|
version=Two""",
|
||||||
]
|
]
|
||||||
includes = ["*.rs"]
|
includes = ["*.rs"]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue