Skip to content

Commit 6e1e749

Browse files
committed
Add test case for opinionated reordering
1 parent 168df28 commit 6e1e749

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

tests/source/import_opinionated.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// rustfmt:reorder_imports_opinionated: true
2+
use chrono::Utc;
3+
use super::update::convert_publish_payload;
4+
5+
use juniper::{FieldError, FieldResult};
6+
use uuid::Uuid;
7+
use std::sync::Arc;
8+
9+
use broker::database::PooledConnection;
10+
11+
use super::schema::{Context, Payload};
12+
use crate::models::Event;

tests/target/import_opinionated.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// rustfmt:reorder_imports_opinionated: true
2+
use std::sync::Arc;
3+
4+
use chrono::Utc;
5+
use juniper::{FieldError, FieldResult};
6+
use uuid::Uuid;
7+
8+
use broker::database::PooledConnection;
9+
10+
use crate::models::Event;
11+
use super::schema::{Context, Payload};
12+
use super::update::convert_publish_payload;

0 commit comments

Comments
 (0)