-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rustfmt.toml
42 lines (37 loc) · 1.41 KB
/
.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
34
35
36
37
38
39
40
41
42
# GitHub <https://github.com/rust-lang/rustfmt/blob/master/README.md#license>
# Configurator <https://rust-lang.github.io/rustfmt/?version=master>
unstable_features = true
edition = '2021'
brace_style = 'SameLineWhere'
control_brace_style = 'AlwaysSameLine'
imports_layout = 'Vertical'
indent_style = 'Block'
imports_granularity = 'Crate'
newline_style = 'Auto'
hex_literal_case = 'Upper'
binop_separator = 'Front'
hard_tabs = true
format_code_in_doc_comments = false
combine_control_expr = false
reorder_imports = false
reorder_modules = false
condense_wildcard_suffixes = true
error_on_line_overflow = true
error_on_unformatted = true
fn_single_line = true
format_macro_bodies = true
format_macro_matchers = true
format_strings = true
match_block_trailing_comma = true
normalize_comments = true
normalize_doc_attributes = true
reorder_impl_items = true
use_field_init_shorthand = true
wrap_comments = true
blank_lines_lower_bound = 0
blank_lines_upper_bound = 1
tab_spaces = 4
enum_discrim_align_threshold = 45
struct_field_align_threshold = 45
comment_width = 90
max_width = 110