File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ type URI = String;
28
28
query_path = "src/query_1.graphql" ,
29
29
response_derives = "Debug" ,
30
30
) ]
31
- struct Query1 ;
31
+ struct RepoView ;
32
32
33
33
#[ derive( StructOpt ) ]
34
34
struct Command {
@@ -60,7 +60,7 @@ fn main() -> Result<(), failure::Error> {
60
60
let repo = args. repo ;
61
61
let ( owner, name) = parse_repo_name ( & repo) . unwrap_or ( ( "tomhoule" , "graphql-client" ) ) ;
62
62
63
- let q = Query1 :: build_query ( query1 :: Variables {
63
+ let q = RepoView :: build_query ( repo_view :: Variables {
64
64
owner : owner. to_string ( ) ,
65
65
name : name. to_string ( ) ,
66
66
} ) ;
@@ -73,7 +73,7 @@ fn main() -> Result<(), failure::Error> {
73
73
. json ( & q)
74
74
. send ( ) ?;
75
75
76
- let response_body: Response < query1 :: ResponseData > = res. json ( ) ?;
76
+ let response_body: Response < repo_view :: ResponseData > = res. json ( ) ?;
77
77
info ! ( "{:?}" , response_body) ;
78
78
79
79
if let Some ( errors) = response_body. errors {
@@ -84,7 +84,7 @@ fn main() -> Result<(), failure::Error> {
84
84
}
85
85
}
86
86
87
- let response_data: query1 :: ResponseData = response_body. data . expect ( "missing response data" ) ;
87
+ let response_data: repo_view :: ResponseData = response_body. data . expect ( "missing response data" ) ;
88
88
89
89
let stars: Option < i64 > = response_data
90
90
. repository
You can’t perform that action at this time.
0 commit comments