-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rustfmt.toml
21 lines (20 loc) · 925 Bytes
/
.rustfmt.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# this was made for rustfmt 1.4.37-nightly (fdf65053 2021-09-07)
condense_wildcard_suffixes = true # better
error_on_line_overflow = true # be more strict
error_on_unformatted = true # be more strict
format_code_in_doc_comments = true # needed
format_macro_bodies = true # changed
format_macro_matchers = true # changed
format_strings = true # better
# TODO remove this after rustfmt #5623 is fixed
ignore = ["awint_macros/src/lib.rs", "awint_core/src/lib.rs"]
imports_granularity = "Crate" # changed
match_arm_blocks = true # needed
newline_style = "Unix" # prevents `\r\n` being accidentally introduced
overflow_delimited_expr = true # preferred
reorder_impl_items = true # better
group_imports = "StdExternalCrate" # promotes consistency
trailing_semicolon = false # the keyword is explicit enough
unstable_features = true
use_field_init_shorthand = true # better
wrap_comments = true # enforce the default comment_width