Skip to content

build: fix clippy warnings for 1.78 - #2199

Merged
WesleyRosenblum merged 5 commits into
mainfrom
WesleyRosenblum/newclippy
May 4, 2024
Merged

build: fix clippy warnings for 1.78#2199
WesleyRosenblum merged 5 commits into
mainfrom
WesleyRosenblum/newclippy

Conversation

@WesleyRosenblum

Copy link
Copy Markdown
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
}
}

fn packet_number_space(&self) -> PacketNumberSpace {

Copy link
Copy Markdown
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
Copy Markdown
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

@camshaft camshaft May 4, 2024

Copy link
Copy Markdown
Contributor

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
@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