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

Provide type hint to fix unhinted subparse #16

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

mkeeter
Copy link
Contributor

@mkeeter mkeeter commented Jan 30, 2025

Fixes #15; otherwise, the hint field is never used and the compiler gets mad about not being able to infer its type.

@mkeeter mkeeter requested a review from FelixMcFelix January 30, 2025 19:50
@mkeeter mkeeter mentioned this pull request Jan 30, 2025
Copy link
Collaborator

@FelixMcFelix FelixMcFelix left a comment

Choose a reason for hiding this comment

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

Thanks for catching this!

@mkeeter mkeeter merged commit 5aa087a into main Feb 3, 2025
5 checks passed
@mkeeter mkeeter deleted the mkeeter/fix-single-subparse branch February 3, 2025 21:35
mkeeter added a commit that referenced this pull request Feb 3, 2025
We were previously double-counting nested packet sizes: both in the
parent packet's `MINIMUM_SIZE`, and again when calling the inner
`packet_size()`. This wasn't an issue when the only nested packets were
`Repeated<..>` (with a minimum size of 0), but #16 lets us nest a
**single** header within another.
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.

Cannot do single subparse()
2 participants