Skip to content

Commit 3a138a2

Browse files
committed
Return grouping extern crate to true by default
1 parent bf9f175 commit 3a138a2

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/config/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ create_config! {
6969

7070
// Ordering
7171
reorder_extern_crates: bool, true, false, "Reorder extern crate statements alphabetically";
72-
reorder_extern_crates_in_group: bool, false, false, "Reorder extern crate statements in group";
72+
reorder_extern_crates_in_group: bool, true, false, "Reorder extern crate statements in group";
7373
reorder_imports: bool, true, false, "Reorder import statements alphabetically";
7474
reorder_imports_in_group: bool, true, false, "Reorder import statements in group";
7575
reorder_imported_names: bool, true, false,

tests/target/extern.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
// rustfmt-normalize_comments: true
22

3-
extern crate bar;
4-
extern crate chrono;
5-
extern crate dotenv;
6-
extern crate foo;
73
extern crate foo;
84
extern crate foo as bar;
5+
6+
extern crate chrono;
7+
extern crate dotenv;
98
extern crate futures;
10-
extern crate proc_macro;
9+
10+
extern crate bar;
11+
extern crate foo;
12+
1113
// #2315
14+
extern crate proc_macro;
1215
extern crate proc_macro2;
1316

1417
extern "C" {

0 commit comments

Comments
 (0)