-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add unused_async_trait_impl lint #16244
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
base: master
Are you sure you want to change the base?
Conversation
07c84ff to
29282db
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
265ec66 to
cf7dc77
Compare
This comment has been minimized.
This comment has been minimized.
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This comment has been minimized.
This comment has been minimized.
ac92856 to
2c59897
Compare
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.
I like the idea a lot! Left some suggestions
…when no source text is available
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.
Some more things, mostly concerning diagnostics
9cdd101 to
6bd9e3a
Compare
3a8be29 to
c9ee761
Compare
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.
Awesome that you were able to get the indentation to work! There is just one thing I'm unsure about (and one smaller point)
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.
Awesome work, I don't think I have anything else to add:)
Let's wait for an actual reviewer to look at this now
|
Ah, one small thing regarding the PR description:
This is a bit long of a changelog message 😅 You could leave it at just
and put the actual description onto a separate paragraph.
I think this is resolved now? If so, feel free to remove (to reduce clutter in the eventual merge commit message) |
Thank you for your amazing help & feedback! I learned a lot about Clippy thanks to you! |
|
Thank you for the kind words:) Glad to have helped! |
|
☔ The latest upstream changes (possibly 60b3ecf) made this pull request unmergeable. Please resolve the merge conflicts. |
changelog: [
unused_async_trait_impl]: new lintAdds Lint that checks for trait impl functions that are unnecessarily
async. By rewriting them to return acore::future::readyan unnecessary coroutine is prevented.In an embedded context having many trivial async blocks potentially hurts code size significantly. This lint enables projects to quickly find the cases that this applies to.