27 lines
567 B
TOML
27 lines
567 B
TOML
# https://rust-lang.github.io/rustfmt/?version=v1.7.0
|
|
|
|
# general
|
|
indent_style = "Block"
|
|
|
|
# rewriting
|
|
condense_wildcard_suffixes = true
|
|
match_block_trailing_comma = true
|
|
use_field_init_shorthand = true
|
|
use_try_shorthand = true
|
|
|
|
# normalization
|
|
normalize_comments = true
|
|
normalize_doc_attributes = true
|
|
|
|
# reordering
|
|
reorder_impl_items = true
|
|
reorder_imports = true
|
|
reorder_modules = true
|
|
imports_granularity = "Crate"
|
|
group_imports = "StdExternalCrate"
|
|
|
|
# additional formating
|
|
format_code_in_doc_comments = true
|
|
format_macro_matchers = true
|
|
format_macro_bodies = true
|