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

Support more types #20

Merged
merged 1 commit into from
Aug 18, 2017
Merged

Conversation

farodin91
Copy link
Contributor

Based on error_chain PR #19

@oli-obk
Copy link
Collaborator

oli-obk commented Aug 18, 2017

Can you rebase this so all the noise from the error_chain PR is removed?

@farodin91
Copy link
Contributor Author

Yes

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(),
Copy link
Collaborator

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?

Copy link
Contributor Author

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

Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found a solution

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@oli-obk oli-obk mentioned this pull request Aug 18, 2017
@oli-obk oli-obk merged commit f05a936 into RReverser:master Aug 18, 2017
@farodin91 farodin91 deleted the support-more-types branch August 18, 2017 14:41
@robo-corg robo-corg mentioned this pull request Nov 16, 2017
@jimrybarski jimrybarski mentioned this pull request Mar 24, 2018
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.

None yet

2 participants