-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrustfmt.toml
More file actions
53 lines (39 loc) · 924 Bytes
/
Copy pathrustfmt.toml
File metadata and controls
53 lines (39 loc) · 924 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
47
48
49
50
51
52
53
edition = "2021"
unstable_features = true
# Line length
max_width = 100
# Indentation
tab_spaces = 4
hard_tabs = false
# Imports
imports_granularity = "Crate"
group_imports = "StdExternalCrate"
reorder_imports = true
# Functions
fn_params_layout = "Tall"
fn_call_width = 80
chain_width = 80
use_small_heuristics = "Default"
# Comments
comment_width = 100
wrap_comments = true
normalize_comments = true
normalize_doc_attributes = true
format_strings = true
struct_field_align_threshold = 0
use_field_init_shorthand = true
# Match
match_arm_blocks = true
match_arm_leading_pipes = "Never"
match_block_trailing_comma = true
control_brace_style = "AlwaysSameLine"
# Spacing
space_after_colon = true
space_before_colon = false
spaces_around_ranges = true
use_try_shorthand = true
reorder_modules = true
remove_nested_parens = true
overflow_delimited_expr = true
trailing_comma = "Vertical"
trailing_semicolon = true