Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ rust:
- beta
- nightly
cache: cargo
before_script:
- if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then (rustup component add rustfmt-preview) fi
script:
- if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then (cargo fmt --all -- --check) fi
- cargo test --all
- cargo build --manifest-path=./examples/github/Cargo.toml
- cargo build --manifest-path=./graphql_client_cli/Cargo.toml
15 changes: 7 additions & 8 deletions graphql_query_derive/src/unions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,13 @@ impl GqlUnion {
&new_prefix,
)
});
let field_interface =
query_context.schema.interfaces.get(&frag.on).map(|_f| {
query_context.maybe_expand_field(
&frag.on,
&frag.fields,
&new_prefix,
)
});
let field_interface = query_context.schema.interfaces.get(&frag.on).map(|_f| {
query_context.maybe_expand_field(
&frag.on,
&frag.fields,
&new_prefix
)
});
// nested unions, is that even a thing?
let field_union_type = query_context.schema.unions.get(&frag.on).map(|_f| {
query_context.maybe_expand_field(&frag.on, &frag.fields, &new_prefix)
Expand Down