File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 4
4
- beta
5
5
- nightly
6
6
cache : cargo
7
+ before_script :
8
+ - if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then (rustup component add rustfmt-preview) fi
7
9
script :
10
+ - if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then (cargo fmt --all -- --check) fi
8
11
- cargo test --all
9
12
- cargo build --manifest-path=./examples/github/Cargo.toml
10
13
- cargo build --manifest-path=./graphql_client_cli/Cargo.toml
Original file line number Diff line number Diff line change @@ -71,14 +71,13 @@ impl GqlUnion {
71
71
& new_prefix,
72
72
)
73
73
} ) ;
74
- let field_interface =
75
- query_context. schema . interfaces . get ( & frag. on ) . map ( |_f| {
76
- query_context. maybe_expand_field (
77
- & frag. on ,
78
- & frag. fields ,
79
- & new_prefix,
80
- )
81
- } ) ;
74
+ let field_interface = query_context. schema . interfaces . get ( & frag. on ) . map ( |_f| {
75
+ query_context. maybe_expand_field (
76
+ & frag. on ,
77
+ & frag. fields ,
78
+ & new_prefix
79
+ )
80
+ } ) ;
82
81
// nested unions, is that even a thing?
83
82
let field_union_type = query_context. schema . unions . get ( & frag. on ) . map ( |_f| {
84
83
query_context. maybe_expand_field ( & frag. on , & frag. fields , & new_prefix)
You can’t perform that action at this time.
0 commit comments