Skip to content

Small refactor to move call generation inside derive_pub_fn#1608

Merged
leighmcculloch merged 1 commit intomainfrom
move-call-generation-inside-derive-fn
Oct 31, 2025
Merged

Small refactor to move call generation inside derive_pub_fn#1608
leighmcculloch merged 1 commit intomainfrom
move-call-generation-inside-derive-fn

Conversation

@leighmcculloch
Copy link
Copy Markdown
Member

What

Move the token stream generation for function calls from the caller into the derive_pub_fn function itself, eliminating the call parameter from the function signature.

Why

This encapsulates the call generation logic within derive_pub_fn, reducing coupling and simplifying the function interface for callers. In a future change I'm working on where derive_pub_fn gets used in more places this will simplify the additional call sites not having to also define the call tokens. Minor refactor here in this PR rather than including it later to keep the later PRs hyperfocused on new functionality rather than a myriad of refactors.

@leighmcculloch leighmcculloch requested a review from a team October 31, 2025 00:08
@leighmcculloch leighmcculloch marked this pull request as ready for review October 31, 2025 00:08
@leighmcculloch leighmcculloch added this pull request to the merge queue Oct 31, 2025
Merged via the queue into main with commit eb1b7a8 Oct 31, 2025
88 checks passed
@leighmcculloch leighmcculloch deleted the move-call-generation-inside-derive-fn branch October 31, 2025 01:37
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