aboutsummaryrefslogtreecommitdiff
path: root/rustfmt.toml
diff options
context:
space:
mode:
authorGravatar Jake Swenson <jake@jakeswenson.com> 2022-11-19 14:00:53 -0800
committerGravatar Jake Swenson <jake@jakeswenson.com> 2022-11-19 14:00:53 -0800
commit1e4f1d49919bf4dd0cfe1af1fcd95d1d90e4b7ff (patch)
treee9f8b9fe28fca2858ce1c1a54871c022b8374199 /rustfmt.toml
parent52b5cb70ec6aaa058d306c9916bcb851f2311730 (diff)
downloadnotion-1e4f1d49919bf4dd0cfe1af1fcd95d1d90e4b7ff.tar.gz
notion-1e4f1d49919bf4dd0cfe1af1fcd95d1d90e4b7ff.tar.zst
notion-1e4f1d49919bf4dd0cfe1af1fcd95d1d90e4b7ff.zip
style(cargo fmt): Add rustfmt config, and fmt code
Diffstat (limited to 'rustfmt.toml')
-rw-r--r--rustfmt.toml17
1 files changed, 17 insertions, 0 deletions
diff --git a/rustfmt.toml b/rustfmt.toml
new file mode 100644
index 0000000..5494467
--- /dev/null
+++ b/rustfmt.toml
@@ -0,0 +1,17 @@
+# https://rust-lang.github.io/rustfmt/?version=v1.5.1&search=
+edition = "2021"
+
+# https://rust-lang.github.io/rustfmt/?version=v1.5.1&search=#fn_args_layout
+fn_args_layout = "Vertical"
+
+# https://rust-lang.github.io/rustfmt/?version=v1.5.1&search=#imports_granularity
+# imports_granularity = "Crate" or "Module"?
+
+# https://rust-lang.github.io/rustfmt/?version=v1.5.1&search=#required_version
+# required_version = "1.5.1"
+
+# https://rust-lang.github.io/rustfmt/?version=v1.5.1&search=#tab_spaces
+tab_spaces = 4
+
+# https://rust-lang.github.io/rustfmt/?version=v1.5.1&search=#tab_spaces
+use_field_init_shorthand = true