Fix CI (#884)
* fix some CI errors * Remove `-C link-dead-code` in tests Seems to break things on Windows.
This commit is contained in:
parent
474cd19d1a
commit
d5458f4979
4 changed files with 12 additions and 7 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -60,7 +60,6 @@ jobs:
|
||||||
|
|
||||||
- name: Build and run tests
|
- name: Build and run tests
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: "-C link-dead-code"
|
|
||||||
CARGO_MAKE_RUN_CODECOV: true
|
CARGO_MAKE_RUN_CODECOV: true
|
||||||
run: |
|
run: |
|
||||||
cargo make workspace-ci-flow --no-workspace
|
cargo make workspace-ci-flow --no-workspace
|
||||||
|
|
|
@ -348,7 +348,10 @@ impl<'a, S> MetaType<'a, S> {
|
||||||
///
|
///
|
||||||
/// Objects, interfaces, and unions are composite.
|
/// Objects, interfaces, and unions are composite.
|
||||||
pub fn is_composite(&self) -> bool {
|
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
|
/// 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.
|
/// Only scalars, enums, and input objects are input types.
|
||||||
pub fn is_input(&self) -> bool {
|
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.
|
/// Returns true if the type is built-in to GraphQL.
|
||||||
|
|
|
@ -231,11 +231,11 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
let meta_field = meta_type.field_by_name(f.name.item).unwrap_or_else(|| {
|
let meta_field = meta_type.field_by_name(f.name.item).unwrap_or_else(|| {
|
||||||
panic!(format!(
|
panic!(
|
||||||
"Field {} not found on type {:?}",
|
"Field {} not found on type {:?}",
|
||||||
f.name.item,
|
f.name.item,
|
||||||
meta_type.name()
|
meta_type.name()
|
||||||
))
|
)
|
||||||
});
|
});
|
||||||
|
|
||||||
let exec_vars = executor.variables();
|
let exec_vars = executor.variables();
|
||||||
|
|
|
@ -449,11 +449,11 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
let meta_field = meta_type.field_by_name(f.name.item).unwrap_or_else(|| {
|
let meta_field = meta_type.field_by_name(f.name.item).unwrap_or_else(|| {
|
||||||
panic!(format!(
|
panic!(
|
||||||
"Field {} not found on type {:?}",
|
"Field {} not found on type {:?}",
|
||||||
f.name.item,
|
f.name.item,
|
||||||
meta_type.name()
|
meta_type.name()
|
||||||
))
|
)
|
||||||
});
|
});
|
||||||
|
|
||||||
let exec_vars = executor.variables();
|
let exec_vars = executor.variables();
|
||||||
|
|
Loading…
Reference in a new issue