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 clippy warnings #4017

Merged
merged 2 commits into from
Aug 3, 2021
Merged

Fix clippy warnings #4017

merged 2 commits into from
Aug 3, 2021

Conversation

LinkTed
Copy link
Contributor

@LinkTed LinkTed commented Aug 2, 2021

Motivation

To improve the code quality, the clippy warnings were fixed.

Solution

Fix the clippy warnings. Also, prevent futures warnings to be merged by add the option -D warnings to the build job.

Fixes #3585.

.github/workflows/ci.yml Outdated Show resolved Hide resolved
@Darksonn Darksonn added the A-tokio Area: The main tokio crate label Aug 2, 2021
@Darksonn
Copy link
Contributor

Darksonn commented Aug 2, 2021

The clippy setup doesn't find all the warnings because we fix clippy to a specific Rust version. This is because otherwise PRs randomly fail due unrelated clippy errors whenever new lints are added. We are always happy to fix clippy errors from newer versions of clippy.

@LinkTed
Copy link
Contributor Author

LinkTed commented Aug 3, 2021

@Darksonn Thanks, but why did the build job fail?

@Darksonn
Copy link
Contributor

Darksonn commented Aug 3, 2021

The CI failure will be fixed in #4020. You can either wait for that to be merged, or rebase this PR on an earlier commit in the master branch (e.g. cf02b3f32d12223283d475f65ccf9301a9a2b951).

@Darksonn
Copy link
Contributor

Darksonn commented Aug 3, 2021

The PR has been merged.

@LinkTed
Copy link
Contributor Author

LinkTed commented Aug 3, 2021

@Darksonn Thanks for the notification 😄.

@Darksonn Darksonn merged commit 8198ef3 into tokio-rs:master Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix clippy -- -D warnings ?
3 participants