Use nightly clippy & rustfmt for more style checks (#487)

This commit is contained in:
Jonas Platte
2021-11-09 11:53:57 +00:00
committed by GitHub
parent bcd18a03bc
commit 9c77ee0295
32 changed files with 69 additions and 65 deletions
+10 -4
View File
@@ -1,9 +1,15 @@
mod starwars;
use async_graphql::http::{playground_source, GraphQLPlaygroundConfig};
use async_graphql::{EmptyMutation, EmptySubscription, Request, Response, Schema};
use axum::response::IntoResponse;
use axum::{extract::Extension, response::Html, routing::get, AddExtensionLayer, Json, Router};
use async_graphql::{
http::{playground_source, GraphQLPlaygroundConfig},
EmptyMutation, EmptySubscription, Request, Response, Schema,
};
use axum::{
extract::Extension,
response::{Html, IntoResponse},
routing::get,
AddExtensionLayer, Json, Router,
};
use starwars::{QueryRoot, StarWars, StarWarsSchema};
async fn graphql_handler(schema: Extension<StarWarsSchema>, req: Json<Request>) -> Json<Response> {
+4 -2
View File
@@ -1,6 +1,8 @@
use super::StarWars;
use async_graphql::connection::{query, Connection, Edge, EmptyFields};
use async_graphql::{Context, Enum, FieldResult, Interface, Object};
use async_graphql::{
connection::{query, Connection, Edge, EmptyFields},
Context, Enum, FieldResult, Interface, Object,
};
/// One of the films in the Star Wars Trilogy
#[derive(Enum, Copy, Clone, Eq, PartialEq)]