* fix some CI errors

* Remove `-C link-dead-code` in tests

Seems to break things on Windows.
This commit is contained in:
trevyn 2021-02-27 00:27:16 +04:00 committed by GitHub
parent 474cd19d1a
commit d5458f4979
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 7 deletions

View file

@ -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

View file

@ -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
@ -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.

View file

@ -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();

View file

@ -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();