Skip to content

Commit

Permalink
📝 Sorted README sections alphabetically
Browse files Browse the repository at this point in the history
Signed-off-by: Luke Carr <luke@subtale.com>
  • Loading branch information
lukecarr committed Feb 25, 2023
1 parent 7d7be64 commit 647f1ef
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,27 @@ Some of these settings are set to their default values; this is intentional to e

This is a required option because some of the below settings are considered "unstable" by rustfmt.

### `reorder_imports = true`

Ensures that imports and extern crate statements are sorted alphabetically (in groups).

```rs
use dolor;
use ipsum;
use lorem;
use sit;
```
### `group_imports = "StdExternalCrate"`

### `imports_layout = "HorizontalVertical"`
Reorganizes imports into three distinct groups:

Forces the style of items inside an imports block.
1. `std`, `core`, and `alloc`
2. external crates
3. `self`, `super`, and `crate` imports

```rs
use foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz};
use alloc::alloc::Layout;
use core::f32;
use std::sync::Arc;

use foo::{
aaaaaaaaaaaaaaaaaa,
bbbbbbbbbbbbbbbbbb,
cccccccccccccccccc,
dddddddddddddddddd,
eeeeeeeeeeeeeeeeee,
ffffffffffffffffff,
};
use broker::database::PooledConnection;
use chrono::Utc;
use juniper::{FieldError, FieldResult};
use uuid::Uuid;

use super::schema::{Context, Payload};
use super::update::convert_publish_payload;
use crate::models::Event;
```

### `imports_granularity = "Crate"`
Expand All @@ -60,27 +55,32 @@ use foo::{
use qux::{h, i};
```

### `group_imports = "StdExternalCrate"`

Reorganizes imports into three distinct groups:
### `imports_layout = "HorizontalVertical"`

1. `std`, `core`, and `alloc`
2. external crates
3. `self`, `super`, and `crate` imports
Forces the style of items inside an imports block.

```rs
use alloc::alloc::Layout;
use core::f32;
use std::sync::Arc;
use foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz};

use broker::database::PooledConnection;
use chrono::Utc;
use juniper::{FieldError, FieldResult};
use uuid::Uuid;
use foo::{
aaaaaaaaaaaaaaaaaa,
bbbbbbbbbbbbbbbbbb,
cccccccccccccccccc,
dddddddddddddddddd,
eeeeeeeeeeeeeeeeee,
ffffffffffffffffff,
};
```

use super::schema::{Context, Payload};
use super::update::convert_publish_payload;
use crate::models::Event;
### `reorder_imports = true`

Ensures that imports and extern crate statements are sorted alphabetically (in groups).

```rs
use dolor;
use ipsum;
use lorem;
use sit;
```

[mit]: LICENSE
Expand Down

0 comments on commit 647f1ef

Please sign in to comment.