Skip to content

Commit 835debe

Browse files
committed
rustfmt
1 parent 5bfb60d commit 835debe

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

examples/example_module/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ extern crate graphql_client;
66

77
#[derive(GraphQLQuery)]
88
#[graphql(
9-
schema_path = "../github/src/schema.graphql", query_path = "../github/src/query_1.graphql"
9+
schema_path = "../github/src/schema.graphql",
10+
query_path = "../github/src/query_1.graphql"
1011
)]
1112
pub struct ExampleModule;

examples/github/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ use graphql_client::*;
1818
use structopt::StructOpt;
1919

2020
#[derive(GraphQLQuery)]
21-
#[graphql(schema_path = "src/schema.graphql", query_path = "src/query_1.graphql")]
21+
#[graphql(
22+
schema_path = "src/schema.graphql",
23+
query_path = "src/query_1.graphql"
24+
)]
2225
struct Query1;
2326

2427
#[derive(StructOpt)]

graphql_client_cli/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ use structopt::StructOpt;
1414

1515
#[derive(GraphQLQuery)]
1616
#[graphql(
17-
schema_path = "src/introspection_schema.graphql", query_path = "src/introspection_query.graphql"
17+
schema_path = "src/introspection_schema.graphql",
18+
query_path = "src/introspection_query.graphql"
1819
)]
1920
struct IntrospectionQuery;
2021

graphql_query_derive/src/unions.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ pub struct GqlUnion {
1616
enum UnionError {
1717
#[fail(display = "Unknown type: {}", ty)]
1818
UnknownType { ty: String },
19-
#[fail(display = "Missing __typename in selection for {}", union_name)]
19+
#[fail(
20+
display = "Missing __typename in selection for {}",
21+
union_name
22+
)]
2023
MissingTypename { union_name: String },
2124
}
2225

0 commit comments

Comments
 (0)