2020-06-08 08:53:45 +03:00
|
|
|
# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md
|
|
|
|
|
|
|
|
# Stable configurations
|
2022-01-21 23:04:37 +03:00
|
|
|
edition = "2021"
|
2020-06-08 08:53:45 +03:00
|
|
|
max_width = 120
|
|
|
|
merge_derives = true
|
|
|
|
use_field_init_shorthand = true
|
2023-03-27 09:16:19 +03:00
|
|
|
use_small_heuristics = "Max"
|
2020-06-08 08:53:45 +03:00
|
|
|
use_try_shorthand = true
|
|
|
|
|
|
|
|
# Nightly configurations
|
2023-03-27 09:16:19 +03:00
|
|
|
imports_layout = "HorizontalVertical"
|
|
|
|
imports_granularity = "Crate"
|
|
|
|
overflow_delimited_expr = true
|
|
|
|
reorder_impl_items = true
|
2024-10-02 04:19:39 +03:00
|
|
|
style_edition = "2024"
|