From 75db1ea8bf2cdf4c930135ec8444db9f2bec1a56 Mon Sep 17 00:00:00 2001 From: Jeremy Fitzhardinge Date: Fri, 4 Jan 2019 14:39:18 -0800 Subject: [PATCH] linter: use in-tree rustfmt binary for Rust formatting Summary: Use rustfmt binaries committed to tools/third-party/rustfmt for formatting. Reviewed By: zertosh Differential Revision: D13166085 fbshipit-source-id: 2ba9568c3f463740b3e48b72196ef7c716e20784 --- rustfmt.toml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/rustfmt.toml b/rustfmt.toml index 1b1f6c9c29..be811934fd 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,15 +1,9 @@ -# Run `rustfmt --config-help` to see available config options. +# Get help on options with `rustfmt --help=config` # Please keep these in alphabetical order. -condense_wildcard_suffixes = true -error_on_line_overflow = false -error_on_unformatted = false -# Too many derives can cause line length limits to be exceeded. rustfmt-nightly -# 0.2.5 doesn't appear to pay attention to this. +# Prefer to keep builtin and custom derives separate merge_derives = false -reorder_imported_names = true reorder_imports = true -reorder_imports_in_group = true -# Override the Nuclide/Atom default tab spacing. +reorder_modules = true tab_spaces = 4 +use_field_init_shorthand = true use_try_shorthand = true -write_mode = "replace"