Skip to content

Conversation

@GarmashAlex
Copy link
Contributor

This change removes an unnecessary clone of the syntax node before calling as_legacy_inline_macro(db) in
ConstevalIntMacro::generate_code(). The clone provided no functional benefit because as_legacy_inline_macro accepts a reference and other inline macros (e.g., array.rs) already call it without cloning. Avoiding the clone reduces minor overhead and aligns the implementation with neighboring macros for consistency without altering behavior.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator

@orizi orizi left a comment

Choose a reason for hiding this comment

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

:lgtm:

@orizi reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @GarmashAlex)

@orizi orizi enabled auto-merge November 28, 2025 12:31
@orizi orizi added this pull request to the merge queue Nov 28, 2025
Merged via the queue into starkware-libs:main with commit 4196935 Nov 28, 2025
54 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.

3 participants