-
Notifications
You must be signed in to change notification settings - Fork 88
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
Support more types #20
Conversation
Can you rebase this so all the noise from the error_chain PR is removed? |
Yes |
56165c7
to
f7e1a5b
Compare
src/lib.rs
Outdated
self.read_inner_value::<V, _>(|this| { | ||
if let XmlEvent::EndElement { .. } = *this.peek()? { | ||
return Err(ErrorKind::Custom(format!("expected an integer")).into()); | ||
return Err( | ||
ErrorKind::Custom("Doesn't expected end element".to_string()).into(), |
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.
That's fairly obvious. Maybe state that a number was expected?
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.
It could be a number or boolean
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.
Right. Just list both of these.
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.
I found a solution
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.
done
f7e1a5b
to
ee70164
Compare
Based on error_chain PR #19