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

Change setter methods to take param as Into<T> instead of T #140

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

rylev
Copy link
Contributor

@rylev rylev commented Jan 8, 2021

Fixes #139

Additionally this renames the setters such that they no longer have with_ before them as discussed in #129.

Not every setter has been changed as some setters cannot follow this pattern. For instance one setter takes a &'a Query<'a>. We could change that to be be T: Into<&'a Query<'a>> but most implementations we care about won't work. For instance, there's no way to turn a &'a str into a &'a Query<'a>.

@rylev rylev requested a review from MindFlavor January 8, 2021 13:16
Copy link
Contributor

@MindFlavor MindFlavor left a comment

Choose a reason for hiding this comment

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

Excellent job! 🥇 🥇

@MindFlavor MindFlavor merged commit 0395bff into Azure:master Jan 8, 2021
@rylev rylev deleted the into-param branch January 8, 2021 16:13
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.

Make setters! macro accept Into<T> generics
2 participants