diff options
author | Akshay <nerdy@peppe.rs> | 2020-07-15 21:26:51 +0530 |
---|---|---|
committer | Akshay <nerdy@peppe.rs> | 2020-07-15 21:26:51 +0530 |
commit | 10e768b6e6255fda9f6f2a4aaa3c23bb2d829eb1 (patch) | |
tree | 9e7417a4318c2f2653b8639c469bbec38e4ed4b7 | |
parent | ef3f556099a3f13ae0c9d0719994805e4682cce7 (diff) |
add rustfmt.toml
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | rustfmt.toml | 15 |
2 files changed, 19 insertions, 0 deletions
@@ -14,3 +14,7 @@ Cargo.lock # ignore logs *.txt + +# ignore session + +*.vim diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..e4b4984 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,15 @@ +max_width = 100 +hard_tabs = false +tab_spaces = 4 +newline_style = "Auto" +use_small_heuristics = "Default" +reorder_imports = true +reorder_modules = true +remove_nested_parens = true +fn_args_layout = "Tall" +edition = "2018" +merge_derives = true +use_try_shorthand = false +use_field_init_shorthand = false +force_explicit_abi = true + |