aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--rustfmt.toml15
2 files changed, 19 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index eb7018d..9bc689e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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 @@
1max_width = 100
2hard_tabs = false
3tab_spaces = 4
4newline_style = "Auto"
5use_small_heuristics = "Default"
6reorder_imports = true
7reorder_modules = true
8remove_nested_parens = true
9fn_args_layout = "Tall"
10edition = "2018"
11merge_derives = true
12use_try_shorthand = false
13use_field_init_shorthand = false
14force_explicit_abi = true
15