-
Notifications
You must be signed in to change notification settings - Fork 1
/
rustfmt.toml
39 lines (38 loc) · 1003 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
array_width = 120
attr_fn_like_width = 120
chain_width = 120
edition = "2018"
fn_call_width = 120
fn_cell_width = 120
ignore = [
# "src/some_file.rs", # example
]
match_block_trailing_comma = true
max_width = 120
reorder_imports = true
single_line_if_else_max_width = 120
struct_lit_width = 120
struct_variant_width = 120
unstable_features = true
use_field_init_shorthand = true
use_small_heuristics = "Default"
use_try_shorthand = true
# unstable
brace_style = "PreferSameLine"
combine_control_expr = true
comment_width = 120
condense_wildcard_suffixes = true
enum_discrim_align_threshold = 20
fn_single_line = true
format_doc_comments = true
format_generated_files = true
format_macro_matchers = true
format_strings = true
#license_template_path = "// Copyright {\d+} The Rust Project Developers." # example
match_arm_blocks = false
merge_imports = true
normalize_comments = true
normalize_doc_attributes = true
reorder_impl_items = true
struct_field_align_threshold = 20
wrap_comments = true