Skip to content

Fix: Use OSError.from_u32! instead of non-existent from_u64!. #20

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

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

jemc
Copy link
Contributor

@jemc jemc commented Jun 10, 2024

The from_u64! function worked when OSError was an :enum, but it stopped being an enum when we needed to support using different values for certain errors on different platforms.

This code has been broken since that change away from being an enum.

This commit fixes the code by using the newly introduced from_u32! function that is now provided by OSError.

The `from_u64!` function worked when `OSError` was an `:enum`, but it
stopped being an enum when we needed to support using different
values for certain errors on different platforms.

This code has been broken since that change away from being an enum.

This commit fixes the code by using the newly introduced
`from_u32!` function that is now provided by `OSError`.
@jemc jemc self-assigned this Jun 10, 2024
@jemc jemc merged commit 01b9e3e into main Jun 10, 2024
5 checks passed
@jemc jemc deleted the update/latest-savi branch June 10, 2024 14:36
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.

1 participant