aboutsummaryrefslogtreecommitdiff
path: root/rustfmt.toml
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-08-28 13:24:39 +0200
committerHampusM <hampus@hampusmat.com>2022-08-28 13:37:14 +0200
commitf91c4ce73786a69e4ec72f69ef4d9d5f03ac5886 (patch)
tree6ac016e731eaf7e6fabdbcf12b84852cbc5af475 /rustfmt.toml
parentdd6ae0c8643f08114469ccff66615b45ccf5e13e (diff)
style: add rustfmt config options
Diffstat (limited to 'rustfmt.toml')
-rw-r--r--rustfmt.toml7
1 files changed, 7 insertions, 0 deletions
diff --git a/rustfmt.toml b/rustfmt.toml
index b689c7b..4d1e29f 100644
--- a/rustfmt.toml
+++ b/rustfmt.toml
@@ -1,4 +1,11 @@
max_width = 90
brace_style = "AlwaysNextLine"
group_imports = "StdExternalCrate"
+wrap_comments = true
+comment_width = 90
+format_code_in_doc_comments = true
+imports_layout = "HorizontalVertical"
+imports_granularity = "Module"
+newline_style = "Unix"
+reorder_impl_items = true