-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrustfmt.toml
More file actions
executable file
·26 lines (25 loc) · 681 Bytes
/
rustfmt.toml
File metadata and controls
executable file
·26 lines (25 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
edition = "2021"
force_explicit_abi = true
hard_tabs = false
match_block_trailing_comma = true
max_width = 80
merge_derives = true
newline_style = "Unix"
remove_nested_parens = true
reorder_imports = true
reorder_modules = true
tab_spaces = 4
use_field_init_shorthand = true
use_small_heuristics = "Default"
use_try_shorthand = false
## nightly channel only
# comment_width = 120 # same as max_width
# condense_wildcard_suffixes = true
# format_code_in_doc_comments = true
# format_strings = true
# group_imports = "StdExternalCrate"
# imports_granularity = "Module"
# normalize_comments = true
# normalize_doc_attributes = true
# reorder_impl_items = true
# wrap_comments = true