Skip to content

Commit

Permalink
make #derive before #attr when derive
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyuro committed Jul 6, 2022
1 parent ac89872 commit 0bbc34b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macro/src/expand.rs
Expand Up @@ -172,8 +172,8 @@ fn expand_struct(strct: &Struct) -> TokenStream {

quote! {
#doc
#attrs
#derives
#attrs
#[repr(C)]
#struct_def

Expand Down Expand Up @@ -342,8 +342,8 @@ fn expand_enum(enm: &Enum) -> TokenStream {

quote! {
#doc
#attrs
#derives
#attrs
#[repr(transparent)]
#enum_def

Expand Down

0 comments on commit 0bbc34b

Please sign in to comment.