-
Notifications
You must be signed in to change notification settings - Fork 1
/
rustfmt.toml
30 lines (22 loc) · 926 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
# Needed for:
# comment_width (https://github.com/rust-lang/rustfmt/issues/33459)
# enum_discrim_align_threshold (https://github.com/rust-lang/rustfmt/issues/3372)
# format_code_in_doc_comments (https://github.com/rust-lang/rustfmt/issues/3348)
# format_macro_matchers (https://github.com/rust-lang/rustfmt/issues/3354)
# normalize_doc_attributes (https://github.com/rust-lang/rustfmt/issues/3351)
# overflow_delimited_expression (https://github.com/rust-lang/rustfmt/issues/3370)
# wrap_comments (https://github.com/rust-lang/rustfmt/issues/3347)
unstable_features = true
max_width = 120
comment_width = 120
format_code_in_doc_comments = true
format_macro_matchers = true
merge_derives = true
imports_granularity = "Module"
wrap_comments = true
normalize_comments = true
normalize_doc_attributes = true
overflow_delimited_expr = true
use_field_init_shorthand = true
use_try_shorthand = true
reorder_impl_items = true