-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
sync: various compatibility improvement #4003
Conversation
Passes: |
match open(Path::new(&f), OFlag::O_NONBLOCK, Mode::empty()) { | ||
Ok(_) => {} | ||
Err(e) => { | ||
if e == Errno::ENOENT { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably add automatic conversion from nix::Errno
to UError
like we have for std::io::Error
. Then we don't need these manual conversions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like a good idea. Do you want me to open an issue as a good first bug ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah good idea
@tertsdiepraam ok with you ? :) |
Yep, all good! |
No description provided.