Joel Galenson | 66036a8 | 2020-07-07 13:29:38 -0700 | [diff] [blame] | 1 | # This rustfmt file is added for configuration, but in practice much of our |
| 2 | # code is hand-formatted, frequently with more readable results. |
| 3 | |
| 4 | # Comments: |
| 5 | normalize_comments = true |
| 6 | wrap_comments = false |
| 7 | comment_width = 90 # small excess is okay but prefer 80 |
| 8 | |
| 9 | # Arguments: |
| 10 | use_small_heuristics = "Default" |
| 11 | # TODO: single line functions only where short, please? |
| 12 | # https://github.com/rust-lang/rustfmt/issues/3358 |
| 13 | fn_single_line = false |
| 14 | fn_args_layout = "Compressed" |
| 15 | overflow_delimited_expr = true |
| 16 | where_single_line = true |
| 17 | |
| 18 | # enum_discrim_align_threshold = 20 |
| 19 | # struct_field_align_threshold = 20 |
| 20 | |
| 21 | # Compatibility: |
| 22 | edition = "2018" # we require compatibility back to 1.32.0 |
| 23 | |
| 24 | # Misc: |
| 25 | inline_attribute_width = 80 |
| 26 | blank_lines_upper_bound = 2 |
| 27 | reorder_impl_items = true |
| 28 | # report_todo = "Unnumbered" |
| 29 | # report_fixme = "Unnumbered" |
| 30 | |
| 31 | # Ignored files: |
| 32 | ignore = [] |