Adopt and apply nightly rustfmt configuration

This commit is contained in:
Juno Takano 2026-02-16 16:17:10 -03:00
commit d7d034757a
45 changed files with 431 additions and 474 deletions

View file

@ -1,27 +1,33 @@
unstable_features = true
match_block_trailing_comma = true
max_width = 80
reorder_imports = false
reorder_modules = false
use_field_init_shorthand = true
use_try_shorthand = true
inline_attribute_width = 40
skip_macro_invocations = ["concat"]
# not stabilized yet
# blank_lines_lower_bound = 1
# where_single_line = true
# overflow_delimited_expr = true
# normalize_doc_attributes = true
# normalize_comments = true
# inline_attribute_width = 40
# imports_granularity = "Crate"
# hex_literal_case = "Lower"
# group_imports = "StdExternalCrate"
# format_strings = true
# force_multiline_blocks = true
# error_on_unformatted = true
# error_on_line_overflow = true
# condense_wildcard_suffixes = true
# doc_comment_code_block_width = 70
# format_code_in_doc_comments = true
# wrap_comments = true
imports_granularity = "Crate"
group_imports = "StdExternalCrate"
fn_single_line = true
match_block_trailing_comma = true
use_field_init_shorthand = true
use_try_shorthand = true
hex_literal_case = "Lower"
where_single_line = true
condense_wildcard_suffixes = true
combine_control_expr = false
empty_item_single_line = true
reorder_impl_items = true
trailing_semicolon = false
wrap_comments = true
normalize_comments = true
normalize_doc_attributes = true
format_code_in_doc_comments = true
doc_comment_code_block_width = 70
error_on_unformatted = true
error_on_line_overflow = true
ignore = [
"tests/mocks",
]