-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rustfmt.toml
35 lines (34 loc) · 1.01 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
edition = "2021"
fn_args_layout = "Vertical"
match_arm_leading_pipes = "Preserve"
match_block_trailing_comma = true
max_width = 98
reorder_modules = false
use_field_init_shorthand = true
use_small_heuristics = "Max"
use_try_shorthand = true
unstable_features = true
blank_lines_upper_bound = 2
brace_style = "AlwaysNextLine"
control_brace_style = "ClosingNextLine"
combine_control_expr = false
comment_width = 98
enum_discrim_align_threshold = 60
error_on_line_overflow = true
error_on_unformatted = true
format_strings = true
format_macro_matchers = true
group_imports = "StdExternalCrate" # Ineffective with imports_granularity="One"
imports_granularity = "One"
imports_layout = "Vertical"
match_arm_blocks = false
normalize_doc_attributes = true
overflow_delimited_expr = true
reorder_impl_items = true
# report_fixme = "Unnumbered" # TODO: In the future
# report_todo = "Unnumbered" # TODO: In the future
spaces_around_ranges = true
struct_field_align_threshold = 40
version = "Two"
where_single_line = true
wrap_comments = true