Allow scalars without #[repr(transparent)]

This commit is contained in:
theduke 2019-06-18 20:31:04 +02:00
parent 3396074274
commit 7e0e7beaa7

View file

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