Skip to content

Commit a21f010

Browse files
committed
Silence clippy false positive
1 parent 07377c6 commit a21f010

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

quinn-proto/src/congestion/cubic.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ impl Controller for Cubic {
180180
self.recovery_start_time = Some(now);
181181

182182
// Fast convergence
183+
#[allow(clippy::branches_sharing_code)]
184+
// https://github.com/rust-lang/rust-clippy/issues/7198
183185
if self.cubic_state.w_max < self.cubic_state.w_last_max {
184186
self.cubic_state.w_last_max = self.cubic_state.w_max;
185187
self.cubic_state.w_max = self.cubic_state.w_max as f64 * (1.0 + BETA_CUBIC) / 2.0;

0 commit comments

Comments
 (0)