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

Commit 04f6f68

Browse files
expensesgilescope
andauthored
Add a rustfmt.toml (#8982)
* Force push to clean up PR mess * Update rustfmt.toml Co-authored-by: Squirrel <[email protected]> * Run `cargo fmt` again with Giles' changes * Unformat utils Co-authored-by: Squirrel <[email protected]>
1 parent 88f147a commit 04f6f68

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

rustfmt.toml

+22
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)