Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 570efba

Browse files
authored
add rustfmt toml (#3491)
* feat: rustfmt.toml Copied from substrate. * avoid normalize It has some odd side effects converting // to /* */ instead of the other way round. See rust-lang/rustfmt#4909 .
1 parent 219f0a4 commit 570efba

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: rustfmt.toml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Basic
2+
hard_tabs = true
3+
max_width = 100
4+
use_small_heuristics = "Max"
5+
# Imports
6+
imports_granularity = "Crate"
7+
reorder_imports = true
8+
# Consistency
9+
newline_style = "Unix"
10+
# Misc
11+
chain_width = 80
12+
spaces_around_ranges = false
13+
binop_separator = "Back"
14+
reorder_impl_items = false
15+
match_arm_leading_pipes = "Preserve"
16+
match_arm_blocks = false
17+
match_block_trailing_comma = true
18+
trailing_comma = "Vertical"
19+
trailing_semicolon = false
20+
use_field_init_shorthand = true

0 commit comments

Comments
 (0)