don't assert #[repr(...)] on #[derive(sqlx::Type)] unless needed (#1305)

This commit is contained in:
Emil Gardström 2021-09-01 03:08:43 +02:00 committed by GitHub
parent 719d80038b
commit 2eb4ff8713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,8 +216,6 @@ pub fn check_transparent_attributes(
field
);
assert_attribute!(attributes.repr.is_none(), "unexpected #[repr(..)]", input);
let ch_attributes = parse_child_attributes(&field.attrs)?;
assert_attribute!(