-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
src: minor cleanups on OneByteString usage #56482
base: main
Are you sure you want to change the base?
Conversation
jasnell
commented
Jan 5, 2025
- Provide a OneByteString variant that accepts std::string_view
- Use FIXED_ONE_BYTE_STRING in appropriate places
Review requested:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #56482 +/- ##
==========================================
- Coverage 89.12% 89.12% -0.01%
==========================================
Files 662 662
Lines 191556 191569 +13
Branches 36860 36863 +3
==========================================
+ Hits 170732 170740 +8
- Misses 13690 13691 +1
- Partials 7134 7138 +4
|
cfda580
to
f8bd2d1
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
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.
LGTM but agreeing with @anonrig's comments about treating std::string_view
like a primitive here, not something that should need to be passed as a reference
* Provide a OneByteString variant that accepts std::string_view * Use FIXED_ONE_BYTE_STRING in appropriate places Signed-off-by: James M Snell <[email protected]>
f8bd2d1
to
1dca50e
Compare