-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rustfmt.toml
30 lines (29 loc) · 958 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
edition = "2021"
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
comment_width = 98
enum_discrim_align_threshold = 60
error_on_line_overflow = true
error_on_unformatted = true
fn_single_line = true
format_strings = true
format_macro_matchers = true
group_imports = "One" # Ineffective with imports_granularity="One"
imports_granularity = "Crate"
imports_indent = "Visual"
match_arm_blocks = false
normalize_doc_attributes = true
overflow_delimited_expr = true
# report_fixme = "Unnumbered" # Don't want for every random file, but can be desirable at times.
# report_todo = "Unnumbered" # Don't want for every random file, but can be desirable at times.
spaces_around_ranges = true
struct_field_align_threshold = 40
version = "Two"
wrap_comments = true