-
Notifications
You must be signed in to change notification settings - Fork 4
/
.rustfmt.toml
24 lines (19 loc) · 751 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
edition = "2021"
version = "Two"
max_width = 132
struct_lit_width = 0 # default 18 (24)
fn_call_width=100 # default 60 (80)
array_width=132 # default 60 (80)
#chain_width=100 # default 60 (80)
#attr_fn_like_width=100 # default 70 (92)
#single_line_if_else_max_width=100 # default 50 (66)
#struct_variant_width = 0 # default 35 (46)
newline_style = "Unix"
reorder_imports = false
match_block_trailing_comma = true
## Experimental Features
unstable_features = true
blank_lines_upper_bound = 3
overflow_delimited_expr = true
# it would be nice to allow a newline at the top and bottom of file
# it would be nice to not erase the whitespace between the end of the code line and start of a comment on the same line