mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-30 12:07:46 +00:00
refactor: use more rustfmt rules
This commit is contained in:
parent
529821fb40
commit
8f724a92c4
4 changed files with 54 additions and 2 deletions
|
@ -1,18 +1,25 @@
|
|||
# https://github.com/kamadorueda/machine/blob/main/nixos-modules/editor/rustfmt.toml
|
||||
edition = "2021"
|
||||
enum_discrim_align_threshold = 999
|
||||
# force_multiline_blocks = true
|
||||
format_code_in_doc_comments = true
|
||||
format_generated_files = true
|
||||
format_macro_bodies = true
|
||||
format_macro_matchers = true
|
||||
format_strings = true
|
||||
group_imports = "StdExternalCrate"
|
||||
hex_literal_case = "Lower"
|
||||
imports_granularity = "Item"
|
||||
imports_layout = "Vertical"
|
||||
# match_block_trailing_comma = true
|
||||
max_width = 80
|
||||
normalize_comments = true
|
||||
normalize_doc_attributes = true
|
||||
overflow_delimited_expr = true
|
||||
reorder_impl_items = true
|
||||
struct_field_align_threshold = 999
|
||||
unstable_features = true
|
||||
use_field_init_shorthand = true
|
||||
use_small_heuristics = "Max"
|
||||
version = "Two"
|
||||
wrap_comments = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue