-
Notifications
You must be signed in to change notification settings - Fork 0
/
rustfmt.toml
45 lines (36 loc) · 1.24 KB
/
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
37
38
39
40
41
42
43
44
45
edition = "2015"
# Who are we kidding here?
tab_spaces = 2
hard_tabs = false
# My OCD is here to stay.
reorder_imports = true
reorder_modules = true
# Arrays shouls always be on the next line
array_width = 20
# >The width threshold for an array element to be considered "short".
# >https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#short_array_element_width_threshold
short_array_element_width_threshold = 3
# >Put single-expression functions on a single line
# >https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#fn_single_line
# fn_single_line = true
# >Format code snippet included in doc comments.
# >https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#format_code_in_doc_comments
# format_code_in_doc_comments = true
# max_width = 100
# newline_style = "Auto"
# use_small_heuristics = "Default"
# fn_call_width = 60
# attr_fn_like_width = 70
# struct_lit_width = 18
# struct_variant_width = 35
# chain_width = 60
# single_line_if_else_max_width = 50
# single_line_let_else_max_width = 50
# remove_nested_parens = true
# match_arm_leading_pipes = "Never"
# fn_params_layout = "Tall"
# match_block_trailing_comma = false
# merge_derives = true
# use_try_shorthand = false
# use_field_init_shorthand = false
# force_explicit_abi = true