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

build: fix clippy warnings for 1.78 #2199

Merged
merged 5 commits into from
May 4, 2024
Merged

Conversation

WesleyRosenblum
Copy link
Contributor

Description of changes:

A new version of rustc dropped with new clippy checks. This PR fixes those.

Call-outs:

The one in batch.rs seems like a false positive, based on rust-lang/rust-clippy#12756

Testing:

CI

Is this a refactor change? If so, how have you proved that the intended behavior hasn't changed? -->

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@WesleyRosenblum WesleyRosenblum marked this pull request as ready for review May 4, 2024 01:38
@WesleyRosenblum WesleyRosenblum enabled auto-merge (squash) May 4, 2024 01:39
@@ -84,10 +83,6 @@ impl<'a, Config: endpoint::Config> super::Payload for Payload<'a, Config> {
Payload::PathValidationOnly(inner) => inner.on_transmit(context),
}
}

fn packet_number_space(&self) -> PacketNumberSpace {
Copy link
Contributor

Choose a reason for hiding this comment

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

Were these just unused?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

apparently, I'm not sure why it just started popping up in clippy though

Copy link
Contributor

@camshaft camshaft May 4, 2024

Choose a reason for hiding this comment

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

The trait is internal to the crate and clippy just started being able to detect this type of dead code. But yeah this method just was never called anywhere.

@WesleyRosenblum WesleyRosenblum merged commit 6dd41e0 into main May 4, 2024
117 of 126 checks passed
@WesleyRosenblum WesleyRosenblum deleted the WesleyRosenblum/newclippy branch May 4, 2024 02:12
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