-
Notifications
You must be signed in to change notification settings - Fork 35
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
Appease two remaining Clippy lints #689
Conversation
If we're already always using the comment to specify the argument name, we might as well use a named enum to convey the meaning directly. This is opt-in - we can continue to pass regular boolean by using the `Into<bool>` rather than accepting only `WithColor` arguments.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few suggestions.
WithColor
enumThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! thanks!
Left a note in ae42770 that says we should move to |
Part of #155
Leaving the
needless_return
for a dedicated PR.