Fix for #39 #51
No reviewers
Labels
No labels
bug
good first issue
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-bitflags/bitflags!51
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-39"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Avoid definitions in inner modules being dependent on things that may
only be in scope in outer modules.
I'm not particularly attached to this if it doesn't work for some cases; but it does the job for me.
Interesting fix! Will try in cocoa-rs.
@dimbleby That fixes the values, but not the type of the enum. This additional patch fixes the types:
Feel free to amend your PR with this if you want.
@nox - thanks! will do
Wouldn't it be better to use
u64instead ofusize? The optimizer should be able to reduce it down to the proper size anyways.@Amanieu True that! It should be
u64given you can dou64bitflags on a 32 bits system. Nice catch.This is a useful PR. @alexcrichton Any chance of a merge and possible release? :)
Thanks @dimbleby!