We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4777249 commit 5603e70Copy full SHA for 5603e70
src/proto/h1/conn.rs
@@ -903,19 +903,14 @@ impl std::ops::BitAndAssign<bool> for KA {
903
}
904
905
906
-#[derive(Clone, Copy, Debug)]
+#[derive(Clone, Copy, Debug, Default)]
907
enum KA {
908
Idle,
909
+ #[default]
910
Busy,
911
Disabled,
912
913
-impl Default for KA {
914
- fn default() -> KA {
915
- KA::Busy
916
- }
917
-}
918
-
919
impl KA {
920
fn idle(&mut self) {
921
*self = KA::Idle;
0 commit comments