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

Commit 66bc8f4

Browse files
committed
feat: rustfmt.toml
Copied from substrate.
1 parent 5480ecf commit 66bc8f4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

rustfmt.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
normalize_comments = true
11+
normalize_doc_attributes = true
12+
# Misc
13+
chain_width = 80
14+
spaces_around_ranges = false
15+
binop_separator = "Back"
16+
reorder_impl_items = false
17+
match_arm_leading_pipes = "Preserve"
18+
match_arm_blocks = false
19+
match_block_trailing_comma = true
20+
trailing_comma = "Vertical"
21+
trailing_semicolon = false
22+
use_field_init_shorthand = true

0 commit comments

Comments
 (0)