Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore: Add indexing_slicing lint #637

Merged
merged 3 commits into from
Jun 19, 2024
Merged

chore: Add indexing_slicing lint #637

merged 3 commits into from
Jun 19, 2024

Conversation

sdankel
Copy link
Member

@sdankel sdankel commented Jun 19, 2024

Closes #636

Adds clippy::indexing_slicing, updates the code to remove instances of index slicing, and adds some unit tests for the functions that were significantly refactored.

@sdankel sdankel requested a review from a team June 19, 2024 20:24
Copy link
Member

@JoshuaBatty JoshuaBatty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I didn't know this was available as a lint. Looks good. thanks.

@sdankel sdankel merged commit 100935d into master Jun 19, 2024
16 checks passed
@sdankel sdankel deleted the sophie/636 branch June 19, 2024 23:09
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent indexing panics
2 participants