Skip to content

Commit

Permalink
refactor: add trailing comma to multiline derives
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Oct 13, 2024
1 parent c7d8e78 commit 3da88b8
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 133 deletions.
4 changes: 2 additions & 2 deletions bindgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ gen() {
--with-derive-hash \
--with-derive-partialeq \
--with-derive-eq \
--with-attribute-custom-enum '.*=#[cfg_attr(feature = "num_enum", derive(num_enum::IntoPrimitive,num_enum::TryFromPrimitive,num_enum::UnsafeFromPrimitive))]' \
--with-attribute-custom-struct '.*=#[cfg_attr(feature = "zerocopy", derive(zerocopy_derive::FromZeroes,zerocopy_derive::FromBytes,zerocopy_derive::AsBytes))]' \
--with-attribute-custom-enum '.*=#[cfg_attr(feature = "num_enum", derive(num_enum::IntoPrimitive,num_enum::TryFromPrimitive,num_enum::UnsafeFromPrimitive,))]' \
--with-attribute-custom-struct '.*=#[cfg_attr(feature = "zerocopy", derive(zerocopy_derive::FromZeroes,zerocopy_derive::FromBytes,zerocopy_derive::AsBytes,))]' \
"$@"
}

Expand Down
Loading

0 comments on commit 3da88b8

Please sign in to comment.