From d91adc5cea447064401f00cf12c269caf297d312 Mon Sep 17 00:00:00 2001 From: Marie Bremner Date: Tue, 21 Jun 2022 12:35:12 -0700 Subject: [PATCH] Remove merge_imports from rustfmt config as it is deprecated Summary: Seeing a lot of warnings when running `cargo fmt`, ``` Warning: the `merge_imports` option is deprecated. Use `imports_granularity="Crate"` instead ``` [GitHub issue on the deprecation](https://github.com/rust-lang/rustfmt/issues/3362#issuecomment-766415850) As we already have the imports_granularity="Item", it seems we can get rid of the deprecated option? Differential Revision: D37313506 fbshipit-source-id: ef885107459d142a735aa39cc925179a0a6210d2 --- rustfmt.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/rustfmt.toml b/rustfmt.toml index 66cca425b95f..69d0112f2786 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,7 +1,6 @@ edition = "2021" version = "Two" imports_granularity = "Item" -merge_imports = true use_field_init_shorthand = true use_try_shorthand = true group_imports = "StdExternalCrate"