-
Notifications
You must be signed in to change notification settings - Fork 0
/
rustfmt.toml
36 lines (28 loc) · 686 Bytes
/
rustfmt.toml
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
27
28
29
30
31
32
33
34
35
36
# Enable unstable features, e.g. group_imports.
unstable_features = true
edition = "2021"
# Imports.
imports_indent = "Block"
imports_layout = "Mixed"
group_imports = "StdExternalCrate"
reorder_imports = true
# Enums, structs, etc.
reorder_impl_items = true
use_field_init_shorthand = true
# Tabs & spaces.
tab_spaces = 2
hard_tabs = false
# Commas.
trailing_comma = "Vertical"
match_block_trailing_comma = true
# General width constraints.
max_width = 100
struct_lit_width = 40
# Match tweaks.
match_arm_leading_pipes = "Always" # Because I'm a weirdo.
force_multiline_blocks = true
# Comments.
wrap_comments = true
comment_width = 100
# Etc.
condense_wildcard_suffixes = true