Skip to content

Commit

Permalink
Merge pull request #1064 from luckyuro/master
Browse files Browse the repository at this point in the history
make #derive before #attr when expand to avoid warning legacy_derive_helpers
  • Loading branch information
dtolnay committed Jul 6, 2022
2 parents ac89872 + 0bbc34b commit 3cb0d42
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 3cb0d42

Please sign in to comment.