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

Array syntax aliases #557

Merged
merged 2 commits into from
Nov 11, 2021
Merged

Array syntax aliases #557

merged 2 commits into from
Nov 11, 2021

Conversation

maciejhirsz
Copy link
Contributor

This change requires aliases to be defined using array syntax instead of a string we have to split and separate by commas. I've removed all trims in proc macro code, meaning method names are taken verbatim as-is without any magic.

}
new_method
fn build_unsubscribe_method(method: &str) -> String {
format!("unsubscribe{}", method.strip_prefix("subscribe").unwrap_or(method))
Copy link
Member

Choose a reason for hiding this comment

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

👍

@dvdplm dvdplm merged commit ac33d20 into master Nov 11, 2021
@dvdplm dvdplm deleted the mh-array-aliases branch November 11, 2021 14:10
@dvdplm
Copy link
Contributor

dvdplm commented Nov 11, 2021

@maciejhirsz given this is a breaking change, can you add it to the 0.5 tracking ticket so we don't forget to mention it in the changelog?

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