Skip to content

Commit d5458f4

Browse files
authored
Fix CI (#884)
* fix some CI errors * Remove `-C link-dead-code` in tests Seems to break things on Windows.
1 parent 474cd19 commit d5458f4

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ jobs:
6060

6161
- name: Build and run tests
6262
env:
63-
RUSTFLAGS: "-C link-dead-code"
6463
CARGO_MAKE_RUN_CODECOV: true
6564
run: |
6665
cargo make workspace-ci-flow --no-workspace

juniper/src/schema/meta.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,10 @@ impl<'a, S> MetaType<'a, S> {
348348
///
349349
/// Objects, interfaces, and unions are composite.
350350
pub fn is_composite(&self) -> bool {
351-
matches!(*self, MetaType::Object(_) | MetaType::Interface(_) | MetaType::Union(_))
351+
matches!(
352+
*self,
353+
MetaType::Object(_) | MetaType::Interface(_) | MetaType::Union(_)
354+
)
352355
}
353356

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

375381
/// Returns true if the type is built-in to GraphQL.

juniper/src/types/async_await.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,11 @@ where
231231
}
232232

233233
let meta_field = meta_type.field_by_name(f.name.item).unwrap_or_else(|| {
234-
panic!(format!(
234+
panic!(
235235
"Field {} not found on type {:?}",
236236
f.name.item,
237237
meta_type.name()
238-
))
238+
)
239239
});
240240

241241
let exec_vars = executor.variables();

juniper/src/types/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,11 @@ where
449449
}
450450

451451
let meta_field = meta_type.field_by_name(f.name.item).unwrap_or_else(|| {
452-
panic!(format!(
452+
panic!(
453453
"Field {} not found on type {:?}",
454454
f.name.item,
455455
meta_type.name()
456-
))
456+
)
457457
});
458458

459459
let exec_vars = executor.variables();

0 commit comments

Comments
 (0)