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;
6
6
7
7
#[ derive( GraphQLQuery ) ]
8
8
#[ 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"
10
11
) ]
11
12
pub struct ExampleModule ;
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ use graphql_client::*;
18
18
use structopt:: StructOpt ;
19
19
20
20
#[ 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
+ ) ]
22
25
struct Query1 ;
23
26
24
27
#[ derive( StructOpt ) ]
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ use structopt::StructOpt;
14
14
15
15
#[ derive( GraphQLQuery ) ]
16
16
#[ 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"
18
19
) ]
19
20
struct IntrospectionQuery ;
20
21
Original file line number Diff line number Diff line change @@ -16,7 +16,10 @@ pub struct GqlUnion {
16
16
enum UnionError {
17
17
#[ fail( display = "Unknown type: {}" , ty) ]
18
18
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
+ ) ]
20
23
MissingTypename { union_name : String } ,
21
24
}
22
25
You can’t perform that action at this time.
0 commit comments