-
Notifications
You must be signed in to change notification settings - Fork 12
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
Upgrade nom dependency to 7.1.3 #41
Conversation
Thanks for creating a PR!! 🦾 Looks like a couple checks failed. Rustfmt should be easy to resolve. Overall the changes seem reasonable, but I also wasn't able to review in depth yet. I'm hoping that @jhwgh1968 might be able to take a look. I'm also hopeful our test cases cover enough to give confidence. |
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.
Thanks indeed @ahartel!
Looking over this quickly, I appreciate a lot of the fixes and lints. In the end, I have only one key question
Why was ToString
trait impl changed to Display
?
I am not sure exactly why I chose ToString
but I think it had to do with trait compatibility. Note also the impl of From
on every "string reference" type.
There is also behavior around Debug
which would be affected by Display
and I am not quite sure about.
Does this change facilitate something specific besides those .to_string()
removals?
Thanks for taking a look!
The lint that clippy gave was this one. |
I fixed the formatting and one more clippy lint which I had missed. My proposal would be to change the assert to a "contains" assert. Any thoughts? |
Ah, I did not know about this lint when I wrote the code! I guess that makes sense to change to a Based on this, please do a "major bump" of the crate version -- so in this case, a second digit. Changing this trait behavior can indeed have consequences.
That test was written to ensure that the format would be exactly correct for what was input, because this would be used for outputting it to data streams. So I am worried about I suspect this test has always been 50-50 due to a coin flip on the Hopefully that would not be too much trouble? Thanks for your work on this! |
Funny I never noticed or don't remember this was flaky. There's a proposed fix for that over here: #42 (review) |
Done |
Thanks for pointing that out. Didn't change the test in this case. |
6d8a25f
to
e508f96
Compare
Hmm, I see. While I'd like to see a complete output test, I will accept that other fix for now. Hopefully once that merges this can too. |
e508f96
to
52dc64c
Compare
Published as v0.4.0 |
No description provided.