MaikKlein / enumflags

24 stars 7 forks source link

The from_bitflag method generates warnings about unused methods #14

Open sfackler opened 6 years ago

sfackler commented 6 years ago

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 commented 6 years ago

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

MaikKlein commented 6 years ago

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.