Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

repr: remove these parentheses #1

Closed
nazar-pc opened this issue Feb 3, 2020 · 1 comment · Fixed by #3
Closed

repr: remove these parentheses #1

nazar-pc opened this issue Feb 3, 2020 · 1 comment · Fixed by #3

Comments

@nazar-pc
Copy link
Sponsor

nazar-pc commented Feb 3, 2020

HI, by specifying #[repr(u16)] on enum compiler complains like this:

142 | #[repr(u16)]
    |       ^^^^^ help: remove these parentheses

This is clearly something within code generated by the macro, can you take a look why this happens?

@dtolnay
Copy link
Owner

dtolnay commented Feb 4, 2020

Thanks! This is a new warning added to a recent rustc. I've published enumn 0.1.2 with the fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants