summaryrefslogtreecommitdiff
path: root/rustfmt.toml
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-05-26 20:38:08 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-05-26 20:38:08 -0400
commitaa985e6a44a58fa0d508cda7fdaa63acf872ced8 (patch)
treef15b7a1207f024abb12c6fc8d12c9e7adba778e1 /rustfmt.toml
parent5b216318b887283d1b22fda055bb7cf381e6ae10 (diff)
Format with rustfmt
Note that we're using struct/enum align options, which require nightly. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'rustfmt.toml')
-rw-r--r--rustfmt.toml4
1 files changed, 3 insertions, 1 deletions
diff --git a/rustfmt.toml b/rustfmt.toml
index 42f2ad7c..83b9248a 100644
--- a/rustfmt.toml
+++ b/rustfmt.toml
@@ -1,3 +1,5 @@
# Default settings, i.e. idiomatic rust
edition = "2021"
-newline_style = "Unix" \ No newline at end of file
+newline_style = "Unix"
+enum_discrim_align_threshold = 20
+struct_field_align_threshold = 20