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

Implement From<std::io::Error> for xml::reader::Error #121

Merged
merged 3 commits into from
May 5, 2016

Conversation

SimonSapin
Copy link
Contributor

This allows users to use try!(File::open(…)) or other IO-related things in a function that also does XML parsing and returns xml::reader::Result.

See the added function in tests/event_reader.rs for an example.

This allows users to use `try!(File::open(…))` or other IO-related things
in a function that also does XML parsing and returns `xml::reader::Result`.

See the added function in `tests/event_reader.rs` for an example.
@netvl
Copy link
Owner

netvl commented May 5, 2016

Looks good, thanks!

@netvl netvl merged commit f5b31f3 into netvl:master May 5, 2016
@SimonSapin SimonSapin deleted the io-error branch May 5, 2016 09:01
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