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 incomplete ValueNotification parsing #17

Merged

Conversation

jmagnuson
Copy link
Contributor

complete! needs to wrap le_u8 in order to prevent an Incomplete error once the slice has been fully-traversed. Alternatively, nom 4's CompleteByteSlice could be used, but I didn't want to mess with the function signature.

Ref: https://github.com/Geal/nom/blob/master/doc/upgrading_to_nom_4.md#dealing-with-incomplete-usage

@mwylde
Copy link
Owner

mwylde commented Dec 2, 2018

Thanks! Handling incompleteness in nom 4 is a huge pain. Moving to CompleteByteSlice is very intrusive (you have to rewrite all of your combinators, and most of the built-in ones don't support it).

@mwylde mwylde merged commit 4316f67 into mwylde:master Dec 2, 2018
@jmagnuson jmagnuson deleted the bugfix/incomplete-value-notification branch December 2, 2018 23:19
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.

2 participants