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

Restore io::ErrorKind::Unsupported. #8

Merged

Conversation

sunfishcode
Copy link
Contributor

ErrorKind::Unsupported was removed in c22ddb0 due to it only being available in Rust 1.53.0. That's older than the current MSRV, so we can now revert the patch.

This restores compatibility with std::io::ErrorKind::Unsupported

`ErrorKind::Unsupported` was removed in c22ddb0
due to it only being available in Rust 1.53.0. That's older than the
current MSRV, so we can now revert the patch.

This restores compatibility with [`std::io::ErrorKind::Unsupported`]

[`std::io::ErrorKind::Unsupported`]: https://doc.rust-lang.org/stable/std/io/enum.ErrorKind.html#variant.Unsupported
@sunfishcode
Copy link
Contributor Author

Rather than just reverting c22ddb0, I noticed it's still useful to have Uncategorized, as the standard library does. And I also added the OutOfMemory error code.

@wcampbell0x2a wcampbell0x2a merged commit 63573d5 into wcampbell0x2a:main Jan 3, 2025
11 checks passed
@sunfishcode sunfishcode deleted the sunfishcode/unsupported branch January 3, 2025 05:04
@sunfishcode sunfishcode mentioned this pull request Jan 3, 2025
2 tasks
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.

2 participants