-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Update std::error
example
#23836
Update std::error
example
#23836
Conversation
To not use `old_io` and `os`, which are deprecated. Since there is no more `MemoryMap` used byte parsing instead to generate the second potential error.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see CONTRIBUTING.md for more information. |
Whoops... Trailing whitespace. My bad. I'll fix this in a few minutes. |
The build got an error on |
I'm personally not a fan of things being compressed to one line |
Formatting was done by the |
//! Io(IoError), | ||
//! Map(MapError) | ||
//! } | ||
//! enum MyError { Io(io::Error), Utf8(str::Utf8Error), } |
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.
This should be over four lines
r=me after the nit, thank you! (the playpen formatter is not perfect) |
@bors: r=steveklabnik rollup |
📌 Commit d4b5f65 has been approved by |
To not use `old_io` and `os`, which are deprecated. Since there is no more `MemoryMap` used byte parsing instead to generate the second potential error. You can see the code working fine [here](http://is.gd/4g0wwp) on the PlayPen.
To not use
old_io
andos
, which are deprecated. Since there is no moreMemoryMap
used byte parsing instead to generate the second potential error.You can see the code working fine here on the PlayPen.