chore(rustfmt): disable all unstable format options

This commit is contained in:
Boshen 2023-07-27 12:34:10 +08:00
parent 608ee9116b
commit 9cb34e0021

View file

@ -1,5 +1,3 @@
version = "Two"
# 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"
@ -7,14 +5,12 @@ use_small_heuristics = "Max"
# Use field initialize shorthand if possible
use_field_init_shorthand = true
# Supported by nightly Rust
unstable_features = true
# Provide a cleaner import sort order
group_imports = "StdExternalCrate"
# All unstable features that we wish for
# unstable_features = true
# version = "Two"
# Provide a cleaner impl order
reorder_impl_items = true
# reorder_impl_items = true
# Provide a cleaner import sort order
# group_imports = "StdExternalCrate"
# Group "use" statements by crate
imports_granularity = "Crate"
# imports_granularity = "Crate"