Skip to content

Commit

Permalink
Rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sunli829 committed Mar 22, 2022
1 parent 49451c2 commit 6a63808
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions axum/subscription/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ use axum::routing::get;
use axum::{extract::Extension, Router, Server};
use books::{BooksSchema, MutationRoot, QueryRoot, Storage, SubscriptionRoot};

async fn graphql_handler(
schema: Extension<BooksSchema>,
req: GraphQLRequest,
) -> GraphQLResponse {
async fn graphql_handler(schema: Extension<BooksSchema>, req: GraphQLRequest) -> GraphQLResponse {
schema.execute(req.into_inner()).await.into()
}

Expand Down

0 comments on commit 6a63808

Please sign in to comment.