-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rustfmt.toml
More file actions
46 lines (38 loc) · 880 Bytes
/
.rustfmt.toml
File metadata and controls
46 lines (38 loc) · 880 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# General
indent_style = "Block"
unstable_features = true
max_width = 80
use_small_heuristics = "Max"
color = "Always"
format_strings = true
space_after_colon = true
# structs
struct_field_align_threshold = 30
struct_lit_single_line = true
use_field_init_shorthand = true
# Functions
fn_params_layout = "Compressed"
fn_call_width = 80
brace_style = "PreferSameLine"
empty_item_single_line = true
# imports
imports_granularity = "Crate"
imports_layout = "Vertical"
group_imports = "StdExternalCrate"
reorder_imports = true
# mods
reorder_modules = true
# tabs
trailing_comma = "Vertical"
match_block_trailing_comma = true
hard_tabs = false
tab_spaces = 4
overflow_delimited_expr = true
# comment
comment_width = 80
wrap_comments = true
format_code_in_doc_comments = true
normalize_comments = true
# if
single_line_if_else_max_width = 80
single_line_let_else_max_width = 80