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

[proc macros]: only generate unsub method if not provided #702

Merged
merged 9 commits into from
Feb 18, 2022
Merged

Conversation

niklasad1
Copy link
Member

@niklasad1 niklasad1 commented Feb 15, 2022

Closing #698

It will only try to generate an unsubscribe method if it starts with subscribe.
Also, if unsubscribe is part of the RPC API it will override the generated unsubscribe method name

@niklasad1 niklasad1 requested a review from a team as a code owner February 15, 2022 18:25
Copy link
Contributor

@dvdplm dvdplm left a comment

Choose a reason for hiding this comment

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

lgtm, minor grumbles

proc-macros/src/rpc_macro.rs Outdated Show resolved Hide resolved
proc-macros/tests/ui/correct/alias_doesnt_use_namespace.rs Outdated Show resolved Hide resolved
proc-macros/src/lib.rs Show resolved Hide resolved
proc-macros/src/lib.rs Show resolved Hide resolved
proc-macros/src/lib.rs Outdated Show resolved Hide resolved
proc-macros/src/lib.rs Outdated Show resolved Hide resolved
proc-macros/src/lib.rs Outdated Show resolved Hide resolved
proc-macros/src/lib.rs Outdated Show resolved Hide resolved
proc-macros/tests/ui/correct/alias_doesnt_use_namespace.rs Outdated Show resolved Hide resolved
niklasad1 and others added 4 commits February 18, 2022 08:34
Co-authored-by: David <dvdplm@gmail.com>
Co-authored-by: David <dvdplm@gmail.com>
Co-authored-by: David <dvdplm@gmail.com>
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