Skip to content

Remove redundant clone in node_kind method#12

Merged
d0iasm merged 1 commit intod0iasm:mainfrom
nnabeyang:remove-redundant-clone-in-node_kind
Oct 19, 2025
Merged

Remove redundant clone in node_kind method#12
d0iasm merged 1 commit intod0iasm:mainfrom
nnabeyang:remove-redundant-clone-in-node_kind

Conversation

@nnabeyang
Copy link
Contributor

The node_kind method was calling .clone() on the result of Node::kind(), but Node::kind() already returns a cloned NodeKind. This PR removes the redundant clone so that the method no longer performs it twice.

@d0iasm
Copy link
Owner

d0iasm commented Oct 19, 2025

Thank you for the clean up!

@d0iasm d0iasm merged commit 9328c0c into d0iasm:main Oct 19, 2025
2 checks passed
@nnabeyang nnabeyang deleted the remove-redundant-clone-in-node_kind branch October 19, 2025 20:38
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.

2 participants