Skip to content

Commit 096c49c

Browse files
committed
Fix clippy::derivable_impls for PacingRateMode
1 parent f0056b0 commit 096c49c

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

quinn-proto/src/config/transport.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -788,9 +788,10 @@ impl Default for MtuDiscoveryConfig {
788788
pub struct IdleTimeout(VarInt);
789789

790790
/// Controls how the pacing rate is calculated
791-
#[derive(Debug, Clone, Copy, PartialEq)]
791+
#[derive(Debug, Clone, Copy, Default, PartialEq)]
792792
pub enum PacingRateMode {
793793
/// The pacing rate scales with the congestion window and inversely with RTT.
794+
#[default]
794795
RttDependent,
795796

796797
/// Fixed rate in bytes per second. Useful for latency-sensitive applications.
@@ -801,12 +802,6 @@ pub enum PacingRateMode {
801802
RttDependentWithFloor(u64),
802803
}
803804

804-
impl Default for PacingRateMode {
805-
fn default() -> Self {
806-
Self::RttDependent
807-
}
808-
}
809-
810805
/// Configuration for packet pacing
811806
#[derive(Debug, Clone)]
812807
pub struct PacingConfig {

0 commit comments

Comments
 (0)