summaryrefslogtreecommitdiff
path: root/vendor/bytemuck/rustfmt.toml
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/bytemuck/rustfmt.toml')
-rw-r--r--vendor/bytemuck/rustfmt.toml16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/bytemuck/rustfmt.toml b/vendor/bytemuck/rustfmt.toml
new file mode 100644
index 0000000..689ceb1
--- /dev/null
+++ b/vendor/bytemuck/rustfmt.toml
@@ -0,0 +1,16 @@
+# Based on
+# https://github.com/rust-lang/rustfmt/blob/rustfmt-1.4.19/Configurations.md
+
+# Stable
+edition = "2018"
+fn_args_layout = "Compressed"
+max_width = 80
+tab_spaces = 2
+use_field_init_shorthand = true
+use_try_shorthand = true
+use_small_heuristics = "Max"
+
+# Unstable
+format_code_in_doc_comments = true
+imports_granularity = "Crate"
+wrap_comments = true