Skip to content

Fix CI #884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 26, 2021
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
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ jobs:

- name: Build and run tests
env:
RUSTFLAGS: "-C link-dead-code"
CARGO_MAKE_RUN_CODECOV: true
run: |
cargo make workspace-ci-flow --no-workspace
Expand Down
10 changes: 8 additions & 2 deletions juniper/src/schema/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,10 @@ impl<'a, S> MetaType<'a, S> {
///
/// Objects, interfaces, and unions are composite.
pub fn is_composite(&self) -> bool {
matches!(*self, MetaType::Object(_) | MetaType::Interface(_) | MetaType::Union(_))
matches!(
*self,
MetaType::Object(_) | MetaType::Interface(_) | MetaType::Union(_)
)
}

/// Returns true if the type can occur in leaf positions in queries
Expand All @@ -369,7 +372,10 @@ impl<'a, S> MetaType<'a, S> {
///
/// Only scalars, enums, and input objects are input types.
pub fn is_input(&self) -> bool {
matches!(*self, MetaType::Scalar(_) | MetaType::Enum(_) | MetaType::InputObject(_))
matches!(
*self,
MetaType::Scalar(_) | MetaType::Enum(_) | MetaType::InputObject(_)
)
}

/// Returns true if the type is built-in to GraphQL.
Expand Down
4 changes: 2 additions & 2 deletions juniper/src/types/async_await.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ where
}

let meta_field = meta_type.field_by_name(f.name.item).unwrap_or_else(|| {
panic!(format!(
panic!(
"Field {} not found on type {:?}",
f.name.item,
meta_type.name()
))
)
});

let exec_vars = executor.variables();
Expand Down
4 changes: 2 additions & 2 deletions juniper/src/types/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,11 @@ where
}

let meta_field = meta_type.field_by_name(f.name.item).unwrap_or_else(|| {
panic!(format!(
panic!(
"Field {} not found on type {:?}",
f.name.item,
meta_type.name()
))
)
});

let exec_vars = executor.variables();
Expand Down