-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
Where an enum
has been used to represent C-style flags (which are then |
-ed together and represented as some flavor of uint
), we should now be using the bitflags!
macro, which provides stronger type safety guarantees at no cost.
This gist gives a rough grep of the code base where enum
s with custom discriminants are being used. Some of these are genuinely enum
s, while others are being used as flags and should be converted to use bitflags!
instead.
Metadata
Metadata
Assignees
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.