]>
Commit | Line | Data |
---|---|---|
416331ca XL |
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 | |
416331ca XL |
7 | comment_width = 90 # small excess is okay but prefer 80 |
8 | ||
9 | # Arguments: | |
dfeec247 XL |
10 | use_small_heuristics = "Default" |
11 | # TODO: single line functions only where short, please? | |
12 | # https://github.com/rust-lang/rustfmt/issues/3358 | |
416331ca | 13 | fn_single_line = false |
dfeec247 | 14 | fn_args_layout = "Compressed" |
416331ca XL |
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: | |
dfeec247 | 25 | inline_attribute_width = 80 |
416331ca XL |
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 = [] |