-
Notifications
You must be signed in to change notification settings - Fork 94
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
feat: optimize IdentifierError
variants
#942
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #942 +/- ##
==========================================
+ Coverage 70.23% 70.76% +0.53%
==========================================
Files 177 178 +1
Lines 17733 17943 +210
==========================================
+ Hits 12455 12698 +243
+ Misses 5278 5245 -33 ☔ View full report in Codecov by Sentry. |
@mina86, also on a side request: |
The PR has been merged, you may continue with your PR 🙂 but it is now in conflict with |
From my point of view I’d rather write a PR and then be told that the review is low on priority list than create an issue. I often don’t exactly know what I want and by the time I formulate an Issue I already have code written for it. If that’s the only concern than I’d prefer not deal with Issues. ;) But let me know if me sending PRs break your workflow. I guess two features that I’m pretty sure I’d love to have for sure are efficient zero-copy |
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 👍
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 for the optimization ! 🎉
Signed-off-by: Rano | Ranadeep <[email protected]>
IdentifierError
variants
* remove ContainsSeparator * remove length * remove Empty * changelog * update changelog entry Signed-off-by: Rano | Ranadeep <[email protected]> --------- Signed-off-by: Rano | Ranadeep <[email protected]> Co-authored-by: Rano | Ranadeep <[email protected]>
Remove IdentifierError::Empty and ContainSeparator variants as they
are redundant. The former is a special case of InvalidLength; the
latter is a special case of InvalidCharacter.
With that, remove length checking from validate_identifier_chars
(which didn’t belong there anyway) and rely on check in
validate_identifier_length instead.
Closes: #978
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.