-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Flip order of s[a..b].as_bytes() #10981
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
Comments
I'd like to work on this but I'm new to the codebase and might need some guidance. |
This seems like it would need a |
@rustbot claim |
What it does
Suggests replacing slicing a
str
followed byas_bytes
with the opposite orderwith
Advantage
Drawbacks
Technically possible someone relied on it panicking, but find that unlikely.
Example
Could be written as:
The text was updated successfully, but these errors were encountered: