mirror of
https://github.com/RGBCube/GDUS
synced 2025-07-29 05:57:45 +00:00
Add rustfmt
This commit is contained in:
parent
b508599686
commit
386879799d
2 changed files with 21 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,6 +3,7 @@
|
|||
!src/
|
||||
|
||||
!.gitignore
|
||||
!.rustfmt.toml
|
||||
!Cargo.lock
|
||||
!Cargo.toml
|
||||
|
||||
|
|
20
.rustfmt.toml
Normal file
20
.rustfmt.toml
Normal file
|
@ -0,0 +1,20 @@
|
|||
condense_wildcard_suffixes = true
|
||||
control_brace_style = "ClosingNextLine"
|
||||
enum_discrim_align_threshold = 25
|
||||
force_explicit_abi = false
|
||||
force_multiline_blocks = true
|
||||
format_code_in_doc_comments = true
|
||||
format_macro_matchers = true
|
||||
format_strings = true
|
||||
hex_literal_case = "Upper"
|
||||
imports_layout = "Vertical"
|
||||
match_block_trailing_comma = true
|
||||
imports_granularity = "Crate"
|
||||
newline_style = "Unix"
|
||||
normalize_comments = true
|
||||
normalize_doc_attributes = true
|
||||
reorder_impl_items = true
|
||||
group_imports = "StdExternalCrate"
|
||||
unstable_features = true
|
||||
use_try_shorthand = true
|
||||
wrap_comments = true
|
Loading…
Add table
Add a link
Reference in a new issue