aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-08-23 16:56:14 +0100
committerAkshay <[email protected]>2020-08-23 16:56:14 +0100
commitf6f9c45fd847ea5840e0fa143a7c9973fa475fb5 (patch)
tree8da9e7e746854bfa2977bcb8c485ea16a3dcf82a
parent311b48924d2e20deb8733a2b94a531f55a83e205 (diff)
add formatting rules
-rw-r--r--rustfmt.toml15
1 files changed, 15 insertions, 0 deletions
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