From 3e7c2f2c3f6a3f82e3e8ad2387493df3989d29ab Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Mon, 25 Sep 2023 16:29:18 +0300 Subject: [PATCH] add rustfmt `group_imports` rule Signed-off-by: onur-ozkan --- rustfmt.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rustfmt.toml b/rustfmt.toml index 55d1bb5ff2c..8b85dd3c946 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -47,3 +47,6 @@ tab_spaces = 4 # Use field initialize shorthand if possible. # https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#use_field_init_shorthand use_field_init_shorthand = true + +# Automatic grouping and ordering +group_imports = "StdExternalCrate"