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 deletion process on Rust 1.55 #107

Merged
merged 1 commit into from
Sep 18, 2021
Merged

Fix deletion process on Rust 1.55 #107

merged 1 commit into from
Sep 18, 2021

Conversation

Bobo1239
Copy link
Contributor

Rust 1.55 unfortunately breaks the existing code which assumed that
ErrorKind::Other will be returned by fs::read_dir() when a file is
encountered. For now just always try deleting as if it's a file with the
possibility to add the optimization back again once the io_error_more
feature is stabilized.

References:

Rust 1.55 unfortunately breaks the existing code which assumed that
ErrorKind::Other will be returned by fs::read_dir() when a file is
encountered. For now just always try deleting as if it's a file with the
possibility to add the optimization back again once the `io_error_more`
feature is stabilized.

References:
- https://blog.rust-lang.org/2021/09/09/Rust-1.55.0.html#stdioerrorkind-variants-updated
- rust-lang/rust#85746
- rust-lang/rust#86442
Copy link
Owner

@Byron Byron left a comment

Choose a reason for hiding this comment

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

Thanks a lot! Even though it's great to see more detailed io error codes, it's the second project that was bitten by it by surprise and I wonder if there would have been other ways to introduce this, like a deprecation period. Otherwise everybody would be expected to test against beta or nightly where this might or might not have surfaced in the first place.

But I am rambling, a new release will be out soon :).

@Byron Byron merged commit f45681a into Byron:main Sep 18, 2021
@Byron
Copy link
Owner

Byron commented Sep 18, 2021

v2.14.7 was just released.

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