Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The from_bitflag method generates warnings about unused methods #14

Open
sfackler opened this issue May 23, 2018 · 2 comments
Open

The from_bitflag method generates warnings about unused methods #14

sfackler opened this issue May 23, 2018 · 2 comments

Comments

@sfackler
Copy link
Contributor

Since it's defined directly on the type rather than a trait, the compiler will warn about it being unused. Can it be turned off?

@sfackler
Copy link
Contributor Author

This warning pops up in the enumflags test suite, for example.

@MaikKlein
Copy link
Owner

Sorry for the late reply. I temporarily suppressed the warning, but the function is also a bit misnamed. I think I will expose an iterator over the bitfields and remove from_bitflagall together.

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

No branches or pull requests

2 participants