From 7e0e7beaa7e904fdb22fe0164e6241ab5237337b Mon Sep 17 00:00:00 2001 From: theduke Date: Tue, 18 Jun 2019 20:31:04 +0200 Subject: [PATCH] Allow scalars without #[repr(transparent)] --- juniper_codegen/src/derive_scalar_value.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/juniper_codegen/src/derive_scalar_value.rs b/juniper_codegen/src/derive_scalar_value.rs index 61176347..43a2d274 100644 --- a/juniper_codegen/src/derive_scalar_value.rs +++ b/juniper_codegen/src/derive_scalar_value.rs @@ -101,9 +101,6 @@ fn impl_scalar_struct( panic!("Invalid #[graphql] attribute: {}", e); } }; - if !(attrs.transparent) { - panic!("Deriving GraphQLScalarValue on a tuple struct requires a #[graphql(transparent) attribute"); - } let inner_ty = &field.ty; let name = attrs.name.unwrap_or(ident.to_string());