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

Fix some clippy::use_self warnings in generated code #1121

Merged
merged 1 commit into from
Apr 30, 2021

Conversation

MarijnS95
Copy link
Contributor

Some low-hanging fruit to shorten generated code and making it more readable at the same time.

This is only scratching the surface. If we really want to combat use_self we'd have to replace function arguments and return types, which is not worth it IMO. This was simple enough (simplifying the generator, too) that it should be okay to do.

Some low-hanging fruit to shorten generated code and making it more
readable at the same time.
@sdroege sdroege merged commit 0516825 into gtk-rs:master Apr 30, 2021
@MarijnS95 MarijnS95 deleted the dry branch April 30, 2021 07:16
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