Allow scalars without #[repr(transparent)]
This commit is contained in:
parent
3396074274
commit
7e0e7beaa7
1 changed files with 0 additions and 3 deletions
|
@ -101,9 +101,6 @@ fn impl_scalar_struct(
|
||||||
panic!("Invalid #[graphql] attribute: {}", e);
|
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 inner_ty = &field.ty;
|
||||||
let name = attrs.name.unwrap_or(ident.to_string());
|
let name = attrs.name.unwrap_or(ident.to_string());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue