Skip to content

Commit cddf5b6

Browse files
committed
rustfmt
1 parent 907c2ce commit cddf5b6

File tree

36 files changed

+75
-75
lines changed

36 files changed

+75
-75
lines changed

actix-web/error-extensions/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#[macro_use]
22
extern crate thiserror;
33

4-
use actix_web::{guard, web, App, HttpResponse, HttpServer};
4+
use actix_web::{App, HttpResponse, HttpServer, guard, web};
55
use async_graphql::{
6-
http::GraphiQLSource, EmptyMutation, EmptySubscription, ErrorExtensions, FieldError,
7-
FieldResult, Object, ResultExt, Schema,
6+
EmptyMutation, EmptySubscription, ErrorExtensions, FieldError, FieldResult, Object, ResultExt,
7+
Schema, http::GraphiQLSource,
88
};
99
use async_graphql_actix_web::GraphQL;
1010

actix-web/starwars/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use actix_web::{guard, web, App, HttpResponse, HttpServer, Result};
2-
use async_graphql::{http::GraphiQLSource, EmptyMutation, EmptySubscription, Schema};
1+
use actix_web::{App, HttpResponse, HttpServer, Result, guard, web};
2+
use async_graphql::{EmptyMutation, EmptySubscription, Schema, http::GraphiQLSource};
33
use async_graphql_actix_web::GraphQL;
44
use starwars::{QueryRoot, StarWars};
55

actix-web/subscription/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use actix_web::{guard, web, App, HttpRequest, HttpResponse, HttpServer, Result};
2-
use async_graphql::{http::GraphiQLSource, Schema};
1+
use actix_web::{App, HttpRequest, HttpResponse, HttpServer, Result, guard, web};
2+
use async_graphql::{Schema, http::GraphiQLSource};
33
use async_graphql_actix_web::{GraphQL, GraphQLSubscription};
44
use books::{BooksSchema, MutationRoot, QueryRoot, Storage, SubscriptionRoot};
55

actix-web/token-from-header/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use actix_web::{
2-
guard, http::header::HeaderMap, web, App, HttpRequest, HttpResponse, HttpServer, Result,
2+
App, HttpRequest, HttpResponse, HttpServer, Result, guard, http::header::HeaderMap, web,
33
};
4-
use async_graphql::{http::GraphiQLSource, EmptyMutation, Schema};
4+
use async_graphql::{EmptyMutation, Schema, http::GraphiQLSource};
55
use async_graphql_actix_web::{GraphQLRequest, GraphQLResponse, GraphQLSubscription};
6-
use token::{on_connection_init, QueryRoot, SubscriptionRoot, Token, TokenSchema};
6+
use token::{QueryRoot, SubscriptionRoot, Token, TokenSchema, on_connection_init};
77

88
async fn graphiql() -> HttpResponse {
99
HttpResponse::Ok()

actix-web/upload/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use actix_web::{guard, web, web::Data, App, HttpResponse, HttpServer};
1+
use actix_web::{App, HttpResponse, HttpServer, guard, web, web::Data};
22
use async_graphql::{
3-
http::{GraphiQLSource, MultipartOptions},
43
EmptySubscription, Schema,
4+
http::{GraphiQLSource, MultipartOptions},
55
};
66
use async_graphql_actix_web::{GraphQLRequest, GraphQLResponse};
77
use files::{FilesSchema, MutationRoot, QueryRoot, Storage};

axum/starwars/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
use async_graphql::{http::GraphiQLSource, EmptyMutation, EmptySubscription, Schema};
1+
use async_graphql::{EmptyMutation, EmptySubscription, Schema, http::GraphiQLSource};
22
use async_graphql_axum::GraphQL;
33
use axum::{
4+
Router,
45
response::{self, IntoResponse},
56
routing::get,
6-
Router,
77
};
88
use starwars::{QueryRoot, StarWars};
99
use tokio::net::TcpListener;

axum/subscription/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
use async_graphql::{http::GraphiQLSource, Schema};
1+
use async_graphql::{Schema, http::GraphiQLSource};
22
use async_graphql_axum::{GraphQL, GraphQLSubscription};
33
use axum::{
4+
Router,
45
response::{self, IntoResponse},
56
routing::get,
6-
Router,
77
};
88
use books::{MutationRoot, QueryRoot, Storage, SubscriptionRoot};
99
use tokio::net::TcpListener;

axum/token-from-header/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
use async_graphql::{
2-
http::{playground_source, GraphQLPlaygroundConfig, ALL_WEBSOCKET_PROTOCOLS},
32
EmptyMutation, Schema,
3+
http::{ALL_WEBSOCKET_PROTOCOLS, GraphQLPlaygroundConfig, playground_source},
44
};
55
use async_graphql_axum::{GraphQLProtocol, GraphQLRequest, GraphQLResponse, GraphQLWebSocket};
66
use axum::{
7-
extract::{ws::WebSocketUpgrade, State},
7+
Router,
8+
extract::{State, ws::WebSocketUpgrade},
89
http::header::HeaderMap,
910
response::{Html, IntoResponse, Response},
1011
routing::get,
11-
Router,
1212
};
13-
use token::{on_connection_init, QueryRoot, SubscriptionRoot, Token, TokenSchema};
13+
use token::{QueryRoot, SubscriptionRoot, Token, TokenSchema, on_connection_init};
1414
use tokio::net::TcpListener;
1515

1616
async fn graphql_playground() -> impl IntoResponse {

axum/upload/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
use async_graphql::{http::GraphiQLSource, EmptySubscription, Schema};
1+
use async_graphql::{EmptySubscription, Schema, http::GraphiQLSource};
22
use async_graphql_axum::GraphQL;
33
use axum::{
4+
Router,
45
http::Method,
56
response::{Html, IntoResponse},
67
routing::get,
7-
Router,
88
};
99
use files::{MutationRoot, QueryRoot, Storage};
1010
use tokio::net::TcpListener;

federation/dynamic-schema/federation-accounts/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use async_graphql::dynamic::{
22
Field, FieldFuture, FieldValue, Object, Schema, SchemaError, TypeRef,
33
};
44
use async_graphql_poem::GraphQL;
5-
use poem::{listener::TcpListener, Route, Server};
5+
use poem::{Route, Server, listener::TcpListener};
66

77
struct Picture {
88
url: String,

0 commit comments

Comments
 (0)