Skip to content

Commit f700e19

Browse files
committed
rustfmt: Add rustfmt.toml
1 parent 5465bc4 commit f700e19

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

rustfmt.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
edition = "2018"
2+
array_width = 100
3+
chain_width = 60
4+
fn_call_width = 100
5+
max_width = 120
6+
brace_style = "AlwaysNextLine"
7+
control_brace_style = "AlwaysSameLine"
8+
fn_params_layout = "Compressed" # ?
9+
format_macro_bodies = false
10+
imports_granularity = "Preserve"
11+
imports_indent = "Block"
12+
imports_layout = "HorizontalVertical"
13+
inline_attribute_width = 0
14+
indent_style = "Block"
15+
match_arm_blocks = false
16+
match_arm_leading_pipes = "Preserve"
17+
merge_derives = false
18+
overflow_delimited_expr = true
19+
reorder_modules = false # impacts rustdoc order
20+
short_array_element_width_threshold = 32
21+
skip_macro_invocations = ["*"]
22+
unstable_features = true
23+
where_single_line = true
24+
25+
# ignored files
26+
ignore = []

0 commit comments

Comments
 (0)