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

chore: enable clippy unused_async rule #22834

Merged
merged 7 commits into from
Mar 12, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Mar 10, 2024

I was looking at the initialization code a bit to see if we could make less of it async and I was surprised to stumble on a function with an async keyword, but no await. Then I found out that clippy does not enforce using removing async when there's no await by default, which seems really surprising to me.

@dsherret dsherret requested a review from mmastrac March 11, 2024 14:16
cli/main.rs Outdated Show resolved Hide resolved
ext/crypto/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@mmastrac mmastrac left a comment

Choose a reason for hiding this comment

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

LGTM. This probably has some good perf implications.

@dsherret dsherret enabled auto-merge (squash) March 12, 2024 01:44
@dsherret dsherret disabled auto-merge March 12, 2024 02:02
Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

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

LGTM

@dsherret dsherret merged commit ad6b00a into denoland:main Mar 12, 2024
17 checks passed
@dsherret dsherret deleted the chore_enable_unused_async_rule branch March 12, 2024 03:48
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.

None yet

4 participants