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

Fix Issue #33 #55

Merged
merged 2 commits into from
Jun 16, 2019
Merged

Fix Issue #33 #55

merged 2 commits into from
Jun 16, 2019

Conversation

Alexhuszagh
Copy link

A comprehensive fix for issue #33. As I have not yet received any comments from this, I am tentatively submitting a PR for this patch. Please see the issue tracker for comments on this patch.



///Convert usize to i32 safely.
fn usize_to_i32(value: usize) -> Result<i32, XmlParseError> {
Copy link
Member

Choose a reason for hiding this comment

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

Cool handler, just reread and saw the Result type. I wonder if a more explicit name would be try_usize_to_i32 to indicate the Result return type, but that's just thinking out loud for now.

Copy link
Author

Choose a reason for hiding this comment

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

I like that a lot, actually. It fits with the naming conventions from the TryFrom trait, making it signify its intent exactly.

@dginev
Copy link
Member

dginev commented Jun 16, 2019

I'm very grateful for the extended test suite, thanks for the upgrade!

@dginev dginev merged commit 6ac5e8f into KWARC:master Jun 16, 2019
@dginev dginev mentioned this pull request Jun 16, 2019
dginev added a commit that referenced this pull request Jun 16, 2019
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