-
Notifications
You must be signed in to change notification settings - Fork 1
/
rustfmt.toml
22 lines (22 loc) · 897 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
chain_width = 80
# Don't combine control expressions with function calls.
combine_control_expr = false
# Replace multiple `_` with a single `..` in tuple patterns.
condense_wildcard_suffixes = true
# Flatten any single-line expressions.
fn_single_line = true
# Format string literals if they are too long.
format_strings = true
# Set the layout of imports in a block.
imports_layout = "HorizontalVertical"
# Put a trailing comma after a block-based match arm.
match_block_trailing_comma = true
# Set the max code with to 120.
# This will automatically set the margins of a lot of other options.
max_width = 120
# Reports TODOs in the code.
report_todo = "Always"
# Removes commas from the last element.
trailing_comma = "Never"
unstable_features = true
wrap_comments = true