Skip to content

Commit

Permalink
update rustfmt.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 committed May 19, 2021
1 parent ccf0d71 commit 7c6ddee
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ trailing_comma = "Never"

# misc
format_code_in_doc_comments = true
merge_imports = true
overflow_delimited_expr = true
format_macro_matchers = true
imports_granularity = "Crate"
use_field_init_shorthand = true
use_try_shorthand = true

# condense Struct { _, _ } to Struct { .. }
condense_wildcard_suffixes = true

# prefer foo(Bar { \n }) over foo(\nBar { \n }\n)
overflow_delimited_expr = true

0 comments on commit 7c6ddee

Please sign in to comment.