-
Notifications
You must be signed in to change notification settings - Fork 119
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
Conversation
…ippy # Conflicts: # quic/s2n-quic-core/src/buffer/reassembler/slot.rs
@@ -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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Were these just unused?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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#12756Testing:
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.