-
Notifications
You must be signed in to change notification settings - Fork 51
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
Implement FromDer trait and DerIterator type #139
Conversation
Codecov Report
@@ Coverage Diff @@
## main #139 +/- ##
==========================================
- Coverage 95.35% 95.04% -0.32%
==========================================
Files 15 15
Lines 4007 3731 -276
==========================================
- Hits 3821 3546 -275
+ Misses 186 185 -1
... and 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
10506cd
to
0c796ab
Compare
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.
This looks like a nice tidy-up to me, thanks @djc!
Tiny nit: maybe squash the 3rd commit into the 1st and switch the usages over to the new pattern in one fell swoop?
I spent some time looking at this and I think it's now correct. But review on these aspects would be good!
Yup, good point -- done. |
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.
looks reasonable to me!
@cpu hope this doesn't cause too much thrashing in your open PRs! |
Nothing some git-fu won't solve :-) |
Right now this is only a little bit more concise but I feel like it might help structure things going forward?
Needs a thorough audit for the correctness of consuming entire DER sequences, not sure we're entirely consistent (and have good coverage of) the
read_all()
aspect of things. (But I think this could help get that right in the future?)