Skip to content

Commit a26a789

Browse files
committed
Update rustfmt config to latest
1 parent 94202f3 commit a26a789

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.rustfmt.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Last Updated Version: 1.8.0
12
# array_width - allow use_small_heuristics
23
# attr_fn_like_width - allow use_small_heuristics
34
binop_separator = "Front"
@@ -25,13 +26,15 @@ force_multiline_blocks = true
2526
format_code_in_doc_comments = true
2627
doc_comment_code_block_width = 120
2728
format_generated_files = false
29+
# generated_marker_line_search_limit - Allow default
2830
format_macro_matchers = true
2931
format_macro_bodies = true
3032
skip_macro_invocations = []
3133
format_strings = true
3234
hard_tabs = true
3335
hex_literal_case = "Upper"
34-
hide_parse_errors = false
36+
# hide_parse_errors - Deprecated, see show_parse_errors
37+
show_parse_errors = true
3538
ignore = []
3639
imports_indent = "Block"
3740
imports_layout = "HorizontalVertical"
@@ -65,6 +68,7 @@ struct_field_align_threshold = 0
6568
struct_lit_single_line = true
6669
# struct_lit_width - allow use_small_heuristics
6770
# struct_variant_width - allow use_small_heuristics
71+
style_edition = "2024"
6872
tab_spaces = 4
6973
trailing_comma = "Vertical"
7074
trailing_semicolon = true
@@ -73,6 +77,6 @@ unstable_features = true
7377
use_field_init_shorthand = true
7478
use_small_heuristics = "Default"
7579
use_try_shorthand = true
76-
version = "Two"
80+
# version = "Two" - Deprecated, see style_edition
7781
where_single_line = true
7882
wrap_comments = true

0 commit comments

Comments
 (0)