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

Output NonZeroUsize instead of usize #107

Closed
wants to merge 1 commit into from
Closed

Output NonZeroUsize instead of usize #107

wants to merge 1 commit into from

Conversation

daxpedda
Copy link
Contributor

@daxpedda daxpedda commented Mar 16, 2021

This is a breaking change, an entry is missing in CHANGELOG too.
If this is an accepted change, I can potentially improve it even more by removing all the tests for smaller then 1 as this is handled by NonZeroUsize anyway.

The MSRV has to be increased to 1.28.0 for this to work.

Fixes #105.
Closes #106.

@daxpedda
Copy link
Contributor Author

I guess the MSRV has to be increased to 1.28.0 for this to work.

@daxpedda
Copy link
Contributor Author

daxpedda commented Mar 16, 2021

Closing in favor of #106.

See #105 (comment).

@daxpedda daxpedda closed this Mar 16, 2021
@daxpedda daxpedda deleted the non-zero-usize branch March 16, 2021 19:10
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.

Returning NonZeroUsize
1 participant