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

fix(bitfield): respect 32 bit targets #255

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

WaffleLapkin
Copy link
Contributor

Personally, I'd just not allow usize at all, but since it already is, we should at least support 16 bit targets...

I've rearranged primitive FromBits impls so that it's [clear that]

  • impl FromBits<T> for {u,i}size is only supported on platforms with size_of::<usize>() <= size_of::<T>()
  • impl FromBits<{u,i}size> for T is only supported on platforms with size_of::<T>() <= size_of::<usize>()

Copy link
Owner

@hawkw hawkw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@hawkw
Copy link
Owner

hawkw commented Jul 17, 2022

we should maybe remove the usize impls in the next breaking change, i agree that they may not really be worth the effort — who's actually going to use them?

@hawkw hawkw merged commit 9b02fae into hawkw:main Jul 20, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants