diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a8c4264..2d7c0d99 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/juniper/src/schema/meta.rs b/juniper/src/schema/meta.rs index 9d1342d7..518859f1 100644 --- a/juniper/src/schema/meta.rs +++ b/juniper/src/schema/meta.rs @@ -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. diff --git a/juniper/src/types/async_await.rs b/juniper/src/types/async_await.rs index 6979e15a..3154db66 100644 --- a/juniper/src/types/async_await.rs +++ b/juniper/src/types/async_await.rs @@ -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(); diff --git a/juniper/src/types/base.rs b/juniper/src/types/base.rs index d25f7441..4966f303 100644 --- a/juniper/src/types/base.rs +++ b/juniper/src/types/base.rs @@ -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();