diff --git a/src/proto/h1/conn.rs b/src/proto/h1/conn.rs index 43fba3b793..3807adb46a 100644 --- a/src/proto/h1/conn.rs +++ b/src/proto/h1/conn.rs @@ -903,19 +903,14 @@ impl std::ops::BitAndAssign for KA { } } -#[derive(Clone, Copy, Debug)] +#[derive(Clone, Copy, Debug, Default)] enum KA { Idle, + #[default] Busy, Disabled, } -impl Default for KA { - fn default() -> KA { - KA::Busy - } -} - impl KA { fn idle(&mut self) { *self = KA::Idle;