Skip to content
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

Enable clippy::string_slice #6224

Closed
link2xt opened this issue Nov 18, 2024 · 0 comments · Fixed by #6225
Closed

Enable clippy::string_slice #6224

link2xt opened this issue Nov 18, 2024 · 0 comments · Fixed by #6225
Assignees

Comments

@link2xt
Copy link
Collaborator

link2xt commented Nov 18, 2024

This is similar to indexing_slicing which I clean up in #6214

We should enable it like this:

#![cfg_attr(not(test), warn(clippy::string_slice))]

And get rid of all potentially panicking slicing that is detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant