]> git.proxmox.com Git - rustc.git/blame - vendor/rand/rustfmt.toml
New upstream version 1.51.0+dfsg1
[rustc.git] / vendor / rand / rustfmt.toml
CommitLineData
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:
5normalize_comments = true
6wrap_comments = false
416331ca
XL
7comment_width = 90 # small excess is okay but prefer 80
8
9# Arguments:
dfeec247
XL
10use_small_heuristics = "Default"
11# TODO: single line functions only where short, please?
12# https://github.com/rust-lang/rustfmt/issues/3358
416331ca 13fn_single_line = false
dfeec247 14fn_args_layout = "Compressed"
416331ca
XL
15overflow_delimited_expr = true
16where_single_line = true
17
18# enum_discrim_align_threshold = 20
19# struct_field_align_threshold = 20
20
21# Compatibility:
22edition = "2018" # we require compatibility back to 1.32.0
23
24# Misc:
dfeec247 25inline_attribute_width = 80
416331ca
XL
26blank_lines_upper_bound = 2
27reorder_impl_items = true
28# report_todo = "Unnumbered"
29# report_fixme = "Unnumbered"
30
31# Ignored files:
32ignore = []