summary refs log tree commit diff
path: root/.rustfmt.toml
diff options
context:
space:
mode:
authorSophie Forrest <git@sophieforrest.com>2024-09-06 13:55:19 +1200
committerSophie Forrest <git@sophieforrest.com>2024-09-06 13:55:19 +1200
commitc4ce297ff951583c9ffe3a88aa22933577b329da (patch)
tree93f55666b0ba0d74be87e10380dcc25a84a17677 /.rustfmt.toml
parent151ab2e8a837242f9654be1280286dc9514fe49c (diff)
refactor: make clippy happy + no cloning
Diffstat (limited to '')
-rw-r--r--.rustfmt.toml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.rustfmt.toml b/.rustfmt.toml
new file mode 100644
index 0000000..3a60dda
--- /dev/null
+++ b/.rustfmt.toml
@@ -0,0 +1,13 @@
+edition = "2021"
+
+format_code_in_doc_comments = true
+format_strings = true
+group_imports = "StdExternalCrate"
+hard_tabs = true
+hex_literal_case = "Upper"
+imports_granularity = "Crate"
+reorder_impl_items = true
+reorder_modules = true
+use_field_init_shorthand = true
+use_try_shorthand = true
+wrap_comments = true