aboutsummaryrefslogtreecommitdiffstats
path: root/.rustfmt.toml
blob: 3aff51c5b56dec78c9a639db715ea6fc5ca591ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
style_edition = "2024"
max_width = 79
# Make Rust more readable given most people have wide screens nowadays.
# This is also the setting used by [rustc](https://github.com/rust-lang/rust/blob/master/rustfmt.toml)
use_small_heuristics = "Max"

# Use field initialize shorthand if possible
use_field_init_shorthand = true

reorder_modules = true

# All unstable features that we wish for
# unstable_features = true
# Provide a cleaner impl order
# reorder_impl_items = true
# Provide a cleaner import sort order
# group_imports = "StdExternalCrate"
# Group "use" statements by crate
# imports_granularity = "Crate"