-
Notifications
You must be signed in to change notification settings - Fork 16
/
rustfmt.toml
33 lines (33 loc) · 847 Bytes
/
rustfmt.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
max_width = 120
ideal_width = 100
leeway = 5
tab_spaces = 4
newline_style = "Unix"
fn_brace_style = "PreferSameLine"
fn_return_indent = "WithArgs"
fn_args_paren_newline = true
fn_args_density = "Compressed"
fn_args_layout = "Visual"
fn_arg_indent = "Tabbed"
where_density = "Tall"
where_indent = "Tabbed"
where_layout = "Horizontal"
where_pred_indent = "Visual"
generics_indent = "Visual"
struct_trailing_comma = "Vertical"
struct_lit_trailing_comma = "Vertical"
struct_lit_style = "Block"
enum_trailing_comma = true
report_todo = "Always"
report_fixme = "Never"
expr_indent_style = "Tabbed"
closure_indent_style = "Visual"
single_line_if_else = true
format_strings = true
density = "Compressed"
rewrite_if_else = true
fn_empty_single_line = true
use_try_shorthand = true
fn_single_line = true
reorder_imports = true
reorder_imported_names = true