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. # 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) # This is also the setting used by [rustc](https://github.com/rust-lang/rust/blob/master/rustfmt.toml)
use_small_heuristics = "Max" use_small_heuristics = "Max"
@ -7,14 +5,12 @@ use_small_heuristics = "Max"
# Use field initialize shorthand if possible # Use field initialize shorthand if possible
use_field_init_shorthand = true use_field_init_shorthand = true
# Supported by nightly Rust # All unstable features that we wish for
unstable_features = true # unstable_features = true
# version = "Two"
# Provide a cleaner import sort order
group_imports = "StdExternalCrate"
# Provide a cleaner impl order # 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 # Group "use" statements by crate
imports_granularity = "Crate" # imports_granularity = "Crate"