diff options
Diffstat (limited to 'rustfmt.toml')
-rw-r--r-- | rustfmt.toml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..5494467 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,17 @@ +# https://rust-lang.github.io/rustfmt/?version=v1.5.1&search= +edition = "2021" + +# https://rust-lang.github.io/rustfmt/?version=v1.5.1&search=#fn_args_layout +fn_args_layout = "Vertical" + +# https://rust-lang.github.io/rustfmt/?version=v1.5.1&search=#imports_granularity +# imports_granularity = "Crate" or "Module"? + +# https://rust-lang.github.io/rustfmt/?version=v1.5.1&search=#required_version +# required_version = "1.5.1" + +# https://rust-lang.github.io/rustfmt/?version=v1.5.1&search=#tab_spaces +tab_spaces = 4 + +# https://rust-lang.github.io/rustfmt/?version=v1.5.1&search=#tab_spaces +use_field_init_shorthand = true |