enumflags icon indicating copy to clipboard operation
enumflags copied to clipboard

The from_bitflag method generates warnings about unused methods

Open sfackler opened this issue 7 years ago • 2 comments

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 avatar May 23 '18 01:05 sfackler

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

sfackler avatar May 23 '18 16:05 sfackler

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.

MaikKlein avatar May 28 '18 06:05 MaikKlein