diff options
author | Akshay <[email protected]> | 2020-07-15 16:56:51 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-07-15 16:56:51 +0100 |
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 | |||
14 | 14 | ||
15 | # ignore logs | 15 | # ignore logs |
16 | *.txt | 16 | *.txt |
17 | |||
18 | # ignore session | ||
19 | |||
20 | *.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 @@ | |||
1 | max_width = 100 | ||
2 | hard_tabs = false | ||
3 | tab_spaces = 4 | ||
4 | newline_style = "Auto" | ||
5 | use_small_heuristics = "Default" | ||
6 | reorder_imports = true | ||
7 | reorder_modules = true | ||
8 | remove_nested_parens = true | ||
9 | fn_args_layout = "Tall" | ||
10 | edition = "2018" | ||
11 | merge_derives = true | ||
12 | use_try_shorthand = false | ||
13 | use_field_init_shorthand = false | ||
14 | force_explicit_abi = true | ||
15 | |||