style: fmt the project (#54)
add rustfmt.toml Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
This commit is contained in:
parent
59bfb6e748
commit
0a2f13a1f4
1 changed files with 158 additions and 132 deletions
6
rustfmt.toml
Normal file
6
rustfmt.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
newline_style = "Unix"
|
||||
unstable_features = true # Cargo fmt now needs to be called with `cargo +nightly fmt`
|
||||
group_imports = "StdExternalCrate" # Create 3 groups: std, external crates, and self.
|
||||
imports_granularity = "Crate" # Merge imports from the same crate into a single use statement
|
||||
style_edition = "2024"
|
||||
max_width = 100
|
||||
Loading…
Reference in a new issue