Skip to content

Commit c5fbbfc

Browse files
committed
Removed temp test
1 parent 6194f08 commit c5fbbfc

File tree

3 files changed

+20
-27
lines changed

3 files changed

+20
-27
lines changed

Configurations.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,10 +2010,10 @@ use sit;
20102010

20112011
## `reorder_imports_opinionated`
20122012

2013-
Reorder imports, creating three groups for:
2014-
- `std`, `core` and `alloc`,
2015-
- external crates
2016-
- this module.
2013+
Discard existing import groups, and create three groups for:
2014+
1. `std`, `core` and `alloc`,
2015+
2. external crates,
2016+
3. this module.
20172017

20182018
Within each group, imports are sorted as with `reorder_imports`.
20192019

@@ -2023,43 +2023,42 @@ This has no effect is `reorder_imports` is `false`.
20232023
- **Possible values**: `true`, `false`
20242024
- **Stable**: No
20252025

2026-
#### `true`:
2026+
#### `false` (default):
20272027

20282028
```rust
2029+
use super::update::convert_publish_payload;
2030+
use chrono::Utc;
2031+
20292032
use alloc::alloc::Layout;
2030-
use core::f32;
2033+
use juniper::{FieldError, FieldResult};
2034+
use uuid::Uuid;
2035+
20312036
use std::sync::Arc;
20322037

20332038
use broker::database::PooledConnection;
2034-
use chrono::Utc;
2035-
use juniper::{FieldError, FieldResult};
2036-
use uuid::Uuid;
20372039

20382040
use super::schema::{Context, Payload};
2039-
use super::update::convert_publish_payload;
20402041
use crate::models::Event;
2042+
use core::f32;
20412043
```
20422044

2043-
#### `false` (default):
2045+
#### `true`:
20442046

20452047
```rust
2046-
use super::update::convert_publish_payload;
2047-
use chrono::Utc;
2048-
20492048
use alloc::alloc::Layout;
2050-
use juniper::{FieldError, FieldResult};
2051-
use uuid::Uuid;
2052-
2049+
use core::f32;
20532050
use std::sync::Arc;
20542051

20552052
use broker::database::PooledConnection;
2053+
use chrono::Utc;
2054+
use juniper::{FieldError, FieldResult};
2055+
use uuid::Uuid;
20562056

20572057
use super::schema::{Context, Payload};
2058+
use super::update::convert_publish_payload;
20582059
use crate::models::Event;
2059-
use core::f32;
20602060
```
20612061

2062-
20632062
## `reorder_modules`
20642063

20652064
Reorder `mod` declarations alphabetically in group.

src/config.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ create_config! {
8181

8282
// Ordering
8383
reorder_imports: bool, true, true, "Reorder import and extern crate statements alphabetically";
84-
reorder_imports_opinionated: bool, false, false, "Reorder imports in blocks";
84+
reorder_imports_opinionated: bool, false, false,
85+
"Create blocks for standard, external, and local imports";
8586
reorder_modules: bool, true, true, "Reorder module statements alphabetically in group";
8687
reorder_impl_items: bool, false, false, "Reorder impl items";
8788

src/test/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,6 @@ fn system_tests() {
198198
});
199199
}
200200

201-
#[test]
202-
fn temp() {
203-
let vpb = vec![Path::new("tests/source/import_opinionated.rs").to_path_buf()];
204-
let (_reports, _count, fails) = check_files(vpb, &None);
205-
assert_eq!(fails, 0);
206-
}
207-
208201
#[test]
209202
fn checkstyle_test() {
210203
init_log();

0 commit comments

Comments
 (0)