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

[Easy] Use Self instead of type name #111

Merged
merged 1 commit into from
Jan 8, 2020
Merged

Conversation

nlordell
Copy link
Contributor

@nlordell nlordell commented Jan 8, 2020

Prefer Self over the typename - this is a stylistic change that helps with the builder patterns and makes refactoring a little easier.

Closes #110

On hold pending merge of #105

@nlordell nlordell added the onhold PR is ready but is waiting on something to be merged label Jan 8, 2020
@nlordell nlordell requested review from fleupold and bh2smith January 8, 2020 12:25
@nlordell nlordell force-pushed the builder_return_self branch from f3ed1a1 to f541f36 Compare January 8, 2020 19:00
@nlordell nlordell removed the onhold PR is ready but is waiting on something to be merged label Jan 8, 2020
@nlordell nlordell changed the base branch from confirmations to master January 8, 2020 19:47
@nlordell nlordell force-pushed the builder_return_self branch from f541f36 to d94c4e3 Compare January 8, 2020 19:49
Copy link
Contributor

@fleupold fleupold left a comment

Choose a reason for hiding this comment

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

Surprised there isn't a clippy rule for it.

🍬

@nlordell
Copy link
Contributor Author

nlordell commented Jan 8, 2020

It would be cool to have! It turns out to be super useful, especially with the builder pattern

@nlordell nlordell merged commit e5061eb into master Jan 8, 2020
@nlordell nlordell deleted the builder_return_self branch January 8, 2020 20:42
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.

Use Self Where Possible
2 participants