mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-04 00:05:27 +00:00
don't assert #[repr(...)] on #[derive(sqlx::Type)]
unless needed (#1305)
This commit is contained in:
parent
719d80038b
commit
2eb4ff8713
@ -216,8 +216,6 @@ pub fn check_transparent_attributes(
|
|||||||
field
|
field
|
||||||
);
|
);
|
||||||
|
|
||||||
assert_attribute!(attributes.repr.is_none(), "unexpected #[repr(..)]", input);
|
|
||||||
|
|
||||||
let ch_attributes = parse_child_attributes(&field.attrs)?;
|
let ch_attributes = parse_child_attributes(&field.attrs)?;
|
||||||
|
|
||||||
assert_attribute!(
|
assert_attribute!(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user