File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff 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) ]
1112pub struct ExampleModule ;
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ use graphql_client::*;
1818use 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+ ) ]
2225struct Query1 ;
2326
2427#[ derive( StructOpt ) ]
Original file line number Diff line number Diff 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) ]
1920struct IntrospectionQuery ;
2021
Original file line number Diff line number Diff line change @@ -16,7 +16,10 @@ pub struct GqlUnion {
1616enum 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
You can’t perform that action at this time.
0 commit comments