Add some potentially sane rustfmt options.

Change-Id: I76debba2f2caee5848f115064fd58e1d72b94308
This commit is contained in:
Reisen 2021-04-30 03:09:55 +00:00
parent 679fa92a56
commit 08ac56a6bb
1 changed files with 10 additions and 0 deletions

View File

@ -1 +1,11 @@
# Merge similar crates together to avoid multiple use statements.
imports_granularity = "Crate"
# Consistency in formatting makes tool based searching/editing better.
empty_item_single_line = false
# Easier editing when arbitrary mixed use statements do not collapse.
imports_layout = "HorizontalVertical"
# Default rustfmt formatting of match arms with branches is awful.
match_arm_leading_pipes = "Preserve"