Skip to content

Commit

Permalink
udp: Tweak EcnCodepoint::from_bits
Browse files Browse the repository at this point in the history
  • Loading branch information
gretchenfrage committed Dec 20, 2024
1 parent b11f2bf commit fcd25de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quinn-proto/src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ pub enum EcnCodepoint {
impl EcnCodepoint {
/// Create new object from the given bits
pub fn from_bits(x: u8) -> Option<Self> {
use self::EcnCodepoint::*;
use EcnCodepoint::*;
Some(match x & 0b11 {
0b10 => Ect0,
0b01 => Ect1,
Expand Down

0 comments on commit fcd25de

Please sign in to comment.