Skip to content

Commit

Permalink
don't assert #[repr(...)] on #[derive(sqlx::Type)] unless needed (l…
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis authored Sep 1, 2021
1 parent 719d800 commit 2eb4ff8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sqlx-macros/src/derives/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit 2eb4ff8

Please sign in to comment.