summaryrefslogtreecommitdiff
path: root/rustfmt.toml
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-08-30 22:07:16 +0200
committerLaurenz <laurmaedje@gmail.com>2020-08-30 22:07:16 +0200
commit3337d2454310a498f43fd62f879d26d1af379239 (patch)
treef7c28dc91e441af64d499fe72ba863a68868f50f /rustfmt.toml
parentfe51ad2e7c25f1291995ab3c18595d19a7420e11 (diff)
Devise reasonably nice rustfmt.toml 🌿
Diffstat (limited to 'rustfmt.toml')
-rw-r--r--rustfmt.toml10
1 files changed, 10 insertions, 0 deletions
diff --git a/rustfmt.toml b/rustfmt.toml
new file mode 100644
index 00000000..9196ae09
--- /dev/null
+++ b/rustfmt.toml
@@ -0,0 +1,10 @@
+unstable_features = true
+
+overflow_delimited_expr = true
+spaces_around_ranges = true
+use_field_init_shorthand = true
+
+max_width = 90
+struct_lit_width = 40
+chain_width = 70
+single_line_if_else_max_width = 60