-
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy path.rustfmt.toml
More file actions
18 lines (16 loc) · 587 Bytes
/
.rustfmt.toml
File metadata and controls
18 lines (16 loc) · 587 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
edition = "2021"
newline_style = "Unix"
# maximum length of comments.
comment_width = 100
# break comments to fit on the line
wrap_comments = true
# convert `/* */` comments to `//` comments where possible
normalize_comments = true
# format code snippet included in doc comments.
format_code_in_doc_comments = true
# merge imports from the same module into a single use
# statement. Conversely, imports from different modules
# are split into separate statements.
imports_granularity = "Module"
# `type` and `const` are put first, then macros and methods.
reorder_impl_items = true