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

refactor(arena): use slice::as_ptr_range in Arena::get_node_id #108

Merged

Conversation

alexmozaidze
Copy link
Contributor

Found the comment and decided to refactor it ¯\_(ツ)_/¯

I changed up the control flow a little in order to reduce nesting, and also renamed some of the variables for clarity (node_id -> node_index, node_id_non_zero -> node_id).

Also changed up the control flow to reduce nesting, which is purely a style preference.
Imported `core::mem` and formatted code using rustfmt
Copy link
Owner

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

Thank you!

@saschagrunert saschagrunert merged commit b228a89 into saschagrunert:main Jun 25, 2024
7 checks passed
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.

None yet

2 participants