-
Notifications
You must be signed in to change notification settings - Fork 82
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
add to_unchecked_string, deprecate old APIs #873
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Bytes::to_string
Bytes::sub_string
to Bytes::to_unchecked_string
Bytes::sub_unchecked_string
Bytes::to_string
Bytes::sub_string
to to_unchecked_string
sub_unchecked_string
Pull Request Test Coverage Report for Build 3839Details
💛 - Coveralls |
We may need to unify to |
Bytes::to_string
Bytes::sub_string
to to_unchecked_string
sub_unchecked_string
Bytes::to_unchecked_string
Buffer::to_unchecked_string
, deprecate old APIs
1dd56a6
to
90a5638
Compare
From the provided
These observations focus on maintaining code clarity, addressing deprecation properly, and ensuring awareness of potential security implications, which are crucial for the maintainability and robustness of the codebase. |
deb1204
to
a91ea6d
Compare
Bytes::to_unchecked_string
Buffer::to_unchecked_string
, deprecate old APIs
builtin/builtin.mbti
Outdated
@@ -170,7 +170,8 @@ impl Buffer { | |||
new(~size_hint : Int = ..) -> Self //deprecated | |||
reset(Self) -> Unit | |||
to_bytes(Self) -> Bytes | |||
to_string(Self) -> String | |||
to_string(Self) -> String //deprecated | |||
to_unchecked_string(Self) -> String | |||
write_byte(Self, Byte) -> Unit |
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.
type Buffer should be deprecated, leave it untouched
to_string(Bytes) -> String | ||
sub_string(Bytes, Int, Int) -> String //deprecated | ||
to_string(Bytes) -> String //deprecated | ||
to_unchecked_string(Bytes, ~offset : Int = .., ~length : Int = ..) -> String |
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
ab0d28c
to
4ee7db8
Compare
4ee7db8
to
75a3472
Compare
to_unchecked_string(~offset,~length)
to Bytesto_unchecked_string
to BufferBytes::to_string
Bytes::sub_string
Buffer::to_string