Skip to content

Commit 93eebff

Browse files
theduketheduke
authored andcommitted
Allow scalars without #[repr(transparent)]
1 parent 8426c97 commit 93eebff

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

juniper_codegen/src/derive_scalar_value.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ fn impl_scalar_struct(
101101
panic!("Invalid #[graphql] attribute: {}", e);
102102
}
103103
};
104-
if !(attrs.transparent) {
105-
panic!("Deriving GraphQLScalarValue on a tuple struct requires a #[graphql(transparent) attribute");
106-
}
107104
let inner_ty = &field.ty;
108105
let name = attrs.name.unwrap_or(ident.to_string());
109106

0 commit comments

Comments
 (0)