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

Update std::error example #23836

Merged
merged 3 commits into from
Mar 31, 2015
Merged

Update std::error example #23836

merged 3 commits into from
Mar 31, 2015

Conversation

Hoverbear
Copy link
Contributor

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 on the PlayPen.

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.
@rust-highfive
Copy link
Collaborator

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.

@Hoverbear
Copy link
Contributor Author

Whoops... Trailing whitespace. My bad. I'll fix this in a few minutes.

@Hoverbear
Copy link
Contributor Author

The build got an error on submodule update and needs to be restarted.

@frewsxcv
Copy link
Member

I'm personally not a fan of things being compressed to one line

@Hoverbear
Copy link
Contributor Author

Formatting was done by the format button on playpen.

//! Io(IoError),
//! Map(MapError)
//! }
//! enum MyError { Io(io::Error), Utf8(str::Utf8Error), }
Copy link
Member

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

@steveklabnik
Copy link
Member

r=me after the nit, thank you!

(the playpen formatter is not perfect)

@Hoverbear
Copy link
Contributor Author

r= @steveklabnik

@Manishearth
Copy link
Member

@bors: r=steveklabnik rollup

@bors
Copy link
Contributor

bors commented Mar 30, 2015

📌 Commit d4b5f65 has been approved by steveklabnik

bors added a commit that referenced this pull request Mar 30, 2015
Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 31, 2015
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.
bors added a commit that referenced this pull request Mar 31, 2015
@bors bors merged commit d4b5f65 into rust-lang:master Mar 31, 2015
@Hoverbear Hoverbear deleted the patch-1 branch March 31, 2015 14:17
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.

7 participants