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: fix clippy lints #2961

Merged
merged 2 commits into from May 3, 2024
Merged

chore: fix clippy lints #2961

merged 2 commits into from May 3, 2024

Conversation

mladedav
Copy link
Contributor

@mladedav mladedav commented May 3, 2024

Motivation

New lints were added to 1.78 which breaks CI.

Solution

New lints are fixed. I also fixed lints present in the beta channel for 1.79.

@mladedav mladedav requested review from a team, hawkw, carllerche and davidbarsky as code owners May 3, 2024 14:40
@@ -541,10 +541,6 @@ mod tests {
Collect,
};

#[derive(Debug)]
struct DoesNothing;
impl<C: Collect> Subscribe<C> for DoesNothing {}
Copy link
Member

Choose a reason for hiding this comment

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

I can't recall what this code was intended to test...I wonder if it was testing that a trivial Subscribe impl compiles? But because we have other implementations in the test suite, I think deleting it is fine.

@@ -33,7 +33,7 @@ default-features = false
features = ["fmt", "std"]

[dev-dependencies]
criterion = { version = "0.3.6", default_features = false }
Copy link
Member

Choose a reason for hiding this comment

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

oh dear...

@hawkw hawkw merged commit 2c5a1f0 into tokio-rs:master May 3, 2024
55 checks passed
@mladedav mladedav deleted the dm/clippy branch May 3, 2024 20:45
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

2 participants