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

Add an explicit bounds check in move_index #353

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Sep 27, 2024

It did already panic as expected, but with a confusing message if the to index was out of bounds. Now we have a direct bounds check for that at the start, just as there already was for the from index.

It did already panic as expected, but with a confusing message if the
`to` index was out of bounds. Now we have a direct bounds check for that
at the start, just as there already was for the `from` index.
@cuviper cuviper added this pull request to the merge queue Sep 27, 2024
Merged via the queue into indexmap-rs:master with commit 09b48ec Sep 27, 2024
16 checks passed
@cuviper cuviper deleted the move_index branch November 15, 2024 00:48
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 this pull request may close these issues.

1 participant