Skip to content

Conversation

@silverjam
Copy link
Contributor

@silverjam silverjam commented Mar 23, 2020

Apparently nom has two cases were it can return "not enough data", there's an Incomplete return type and an EOF error. I'm not sure in what cases it would return one vs the other, but the EOF error here would cause us the drop messages in the Rust version of sbp2json (which was surfaced while testing the Rust variant of json2sbp).

TODO:

  • Add unit test

@silverjam silverjam changed the title rust: nom parsing fix-up for eof error rust: nom parsing fix-up for eof error [INFRA-125] Mar 23, 2020
@silverjam silverjam requested a review from jbangelo March 23, 2020 05:11
Copy link
Contributor

@jbangelo jbangelo left a comment

Choose a reason for hiding this comment

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

Good catch! Would we want to up the version number for this?

@silverjam
Copy link
Contributor Author

Good catch! Would we want to up the version number for this?

You mean make a new release? Yeah, I'll do that sometime this week.

@silverjam silverjam merged commit c9524cc into master Mar 23, 2020
@silverjam silverjam deleted the silverjam/sbp2json branch March 23, 2020 19:06
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.

3 participants