From 21dca857cd1e333c4ade9b22f466a7371784e236 Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Mon, 22 Mar 2021 12:06:20 -0700 Subject: [PATCH] Add rustfmt.toml to project root --- rustfmt.otml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 rustfmt.otml diff --git a/rustfmt.otml b/rustfmt.otml new file mode 100644 index 000000000..d8351ff14 --- /dev/null +++ b/rustfmt.otml @@ -0,0 +1,19 @@ +edition = "2018" +hard_tabs = true +max_width = 180 +newline_style = "Unix" +use_try_shorthand = true + +# Enable when 2.0 is released: +# match_block_trailing_comma = true + +# Enable when control_brace_style becomes stable: +# control_brace_style = "ClosingNextLine" + +# Maybe enable these in the future when they're stabilized +# normalize_comments = true +# normalize_doc_attributes = true +# struct_lit_width = 35 +# where_single_line = true + +# For now run: cargo fmt -- --config match_block_trailing_comma=true --config control_brace_style=ClosingNextLine \ No newline at end of file