From fcd25de161aecf9f7e2e771bbca3975e9fbd1487 Mon Sep 17 00:00:00 2001 From: Phoenix Kahlo Date: Fri, 20 Dec 2024 13:13:59 -0600 Subject: [PATCH] udp: Tweak EcnCodepoint::from_bits --- quinn-proto/src/shared.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quinn-proto/src/shared.rs b/quinn-proto/src/shared.rs index 6ca41f003..d4a402d24 100644 --- a/quinn-proto/src/shared.rs +++ b/quinn-proto/src/shared.rs @@ -155,7 +155,7 @@ pub enum EcnCodepoint { impl EcnCodepoint { /// Create new object from the given bits pub fn from_bits(x: u8) -> Option { - use self::EcnCodepoint::*; + use EcnCodepoint::*; Some(match x & 0b11 { 0b10 => Ect0, 0b01 => Ect1,