-
Notifications
You must be signed in to change notification settings - Fork 269
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
clippy: disallow useless async
s
#3513
Conversation
also don't tell damir but i've sneaked in a few test_ prefixes
because of our way to implement the trait only on wasm
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3513 +/- ##
==========================================
+ Coverage 83.75% 83.77% +0.01%
==========================================
Files 254 254
Lines 25729 25723 -6
==========================================
Hits 21550 21550
+ Misses 4179 4173 -6 ☔ View full report in Codecov by Sentry. |
cf2e0f0
to
515b3c9
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.
Good idea. Looks good.
Oh that's a nice lint! |
Using async when not required will increase compile times, and propagate async-ness to the callers, transitively.
See also the lint description.
Since we only had a few false positives, I've enabled it by default. This PR is supposed to be squashed-and-merged, there's no point in keeping the individual commits, but these should help with the review.
(Note there's a renaming in the middle too.)