-
-
Notifications
You must be signed in to change notification settings - Fork 113
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 I/O error handling in lexer and parser #106
Labels
Comments
RGafiyatullin
added a commit
to RGafiyatullin/xml-rs
that referenced
this issue
Oct 30, 2015
* moved `::util` to `::reader::util` -- there was nothing there but reading from the io::Read; * `impl Into<::reader::Error> for ::util::CharReadError`; * `::reader:lexer::Lexer::next_token( ... )` return type changed from `LexStep` to ::reader::Result<LexStep>; * exposed `EventReader<R>`'s souce as mut- and immut-reference: I need to feed my Buffer (:io::Read) somehow. ( Probably the better solution would be to pub-use PullParser in xml::reader, but it has too many private types in the API signatures )
RGafiyatullin
added a commit
to RGafiyatullin/xml-rs
that referenced
this issue
Oct 30, 2015
* moved `::util` to `::reader::util` -- there was nothing there but reading from the io::Read; * `impl Into<::reader::Error> for ::util::CharReadError`; * `::reader:lexer::Lexer::next_token( ... )` return type changed from `LexStep` to ::reader::Result<LexStep>; * exposed `EventReader<R>`'s souce as mut- and immut-reference: I need to feed my Buffer (:io::Read) somehow. ( Probably the better solution would be to pub-use PullParser in xml::reader, but it has too many private types in the API signatures )
RGafiyatullin
added a commit
to RGafiyatullin/xml-rs
that referenced
this issue
Oct 30, 2015
* moved `::util` to `::reader::util` -- there was nothing there but reading from the io::Read; * `impl Into<::reader::Error> for ::util::CharReadError`; * `::reader:lexer::Lexer::next_token( ... )` return type changed from `LexStep` to ::reader::Result<LexStep>; * exposed `EventReader<R>`'s souce as mut- and immut-reference: I need to feed my Buffer (:io::Read) somehow. ( Probably the better solution would be to pub-use PullParser in xml::reader, but it has too many private types in the API signatures )
Ouch. GitHub appears to be so verbose... |
Can this be closed? Seems like #109 fixed this. |
Yep, it seems so. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently I/O errors are silently consumed and treated like EOF.
Unfortunately, proper solution would require breaking change in
xml::reader::Error
.The text was updated successfully, but these errors were encountered: