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: new clippy/rust lints #2948

Merged
merged 1 commit into from
May 2, 2024
Merged

Conversation

dpc
Copy link
Contributor

@dpc dpc commented Apr 22, 2024

Motivation

clippy is failing with recent Rust toolchain up to 1.77.2.

Solution

Give clippy what it wants.

@dpc dpc requested review from hawkw, carllerche, davidbarsky and a team as code owners April 22, 2024 18:46
@hds hds changed the title fix: new clippy/rust lints chore: new clippy/rust lints Apr 23, 2024
@hds
Copy link
Contributor

hds commented Apr 23, 2024

@dpc there's one more failure in clippy still: https://github.com/tokio-rs/tracing/actions/runs/8789287064/job/24141292737?pr=2948

@hawkw
Copy link
Member

hawkw commented Apr 25, 2024

The remaining clippy failure (https://github.com/tokio-rs/tracing/actions/runs/8807729140/job/24205123089?pr=2948#step:4:825) should probably be solved with an allow attribute; I believe the Arc is being used to track when the struct is dropped, so it's okay that we don't actually read its value.

Copy link
Contributor

@hds hds left a comment

Choose a reason for hiding this comment

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

Thank you for your change!

@hds hds merged commit 9adfa7b into tokio-rs:master May 2, 2024
55 checks passed
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.

3 participants