Skip to content

Commit 627f688

Browse files
committed
reviewer comments and rebase fallout
1 parent d9942d3 commit 627f688

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

Configurations.md

+14-13
Original file line numberDiff line numberDiff line change
@@ -1297,27 +1297,28 @@ Reorder import statements in group
12971297

12981298
**Note:** This option takes effect only when [`reorder_imports`](#reorder_imports) is set to `true`.
12991299

1300-
#### `false` (default):
1300+
#### `true` (default):
13011301

13021302
```rust
1303+
use std::io;
1304+
use std::mem;
1305+
13031306
use dolor;
13041307
use ipsum;
13051308
use lorem;
13061309
use sit;
1307-
use std::io;
1308-
use std::mem;
13091310
```
13101311

1311-
#### `true`:
1312+
#### `false`:
13121313

1313-
```rust
1314-
use std::io;
1315-
use std::mem;
13161314

1315+
```rust
13171316
use dolor;
13181317
use ipsum;
13191318
use lorem;
13201319
use sit;
1320+
use std::io;
1321+
use std::mem;
13211322
```
13221323

13231324
See also [`reorder_imports`](#reorder_imports).
@@ -1359,7 +1360,11 @@ Reorder `extern crate` statements in group
13591360
- **Possible values**: `true`, `false`
13601361
- **Stable**: No
13611362

1362-
#### `true` (default):
1363+
#### `false` (default):
1364+
1365+
This value has no influence beyond the effect of the [`reorder_extern_crates`](#reorder_extern_crates) option. Set [`reorder_extern_crates`](#reorder_extern_crates) to `false` if you do not want `extern crate` groups to be collapsed and ordered.
1366+
1367+
#### `true`:
13631368

13641369
**Note:** This only takes effect when [`reorder_extern_crates`](#reorder_extern_crates) is set to `true`.
13651370

@@ -1373,10 +1378,6 @@ extern crate lorem;
13731378
extern crate sit;
13741379
```
13751380

1376-
#### `false`:
1377-
1378-
This value has no influence beyond the effect of the [`reorder_extern_crates`](#reorder_extern_crates) option. Set [`reorder_extern_crates`](#reorder_extern_crates) to `false` if you do not want `extern crate` groups to be collapsed and ordered.
1379-
13801381
## `reorder_modules`
13811382

13821383
Reorder `mod` declarations alphabetically in group.
@@ -1385,7 +1386,7 @@ Reorder `mod` declarations alphabetically in group.
13851386
- **Possible values**: `true`, `false`
13861387
- **Stable**: No
13871388

1388-
#### `true`
1389+
#### `true` (default)
13891390

13901391
```rust
13911392
mod a;

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ use std::time::Duration;
4141
use syntax::ast;
4242
pub use syntax::codemap::FileName;
4343
use syntax::codemap::{CodeMap, FilePathMapping};
44-
use syntax::errors::{DiagnosticBuilder, Handler};
4544
use syntax::errors::emitter::{ColorConfig, EmitterWriter};
45+
use syntax::errors::{DiagnosticBuilder, Handler};
4646
use syntax::parse::{self, ParseSess};
4747

4848
use checkstyle::{output_footer, output_header};

0 commit comments

Comments
 (0)