Skip to content

Add no_enum to disable top-level type#11

Merged
michaelsproul merged 1 commit intomainfrom
no-enum
Dec 3, 2021
Merged

Add no_enum to disable top-level type#11
michaelsproul merged 1 commit intomainfrom
no-enum

Conversation

@michaelsproul
Copy link
Copy Markdown
Member

Sometimes we just want superstruct to generate variants and no top-level type. This PR addresses this use by adding a superstruct(no_enum) attribute.

I also updated a test to pass lints introduced in Rust 1.57.0

@michaelsproul michaelsproul merged commit c0c9915 into main Dec 3, 2021
@michaelsproul michaelsproul deleted the no-enum branch December 3, 2021 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant