Skip to content

Commit

Permalink
no Display
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Jan 10, 2025
1 parent 75f2f78 commit ea1ef88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions neqo-crypto/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,6 @@ impl From<Epoch> for usize {
}
}

impl std::fmt::Display for Epoch {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Initial => write!(f, "Initial"),
Self::ZeroRtt => write!(f, "ZeroRtt"),
Self::Handshake => write!(f, "Handshake"),
Self::ApplicationData => write!(f, "ApplicationData"),
}
}
}

/// Rather than defining a type alias and a bunch of constants, which leads to a ton of repetition,
/// use this macro.
macro_rules! remap_enum {
Expand Down
2 changes: 1 addition & 1 deletion neqo-transport/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ impl CryptoDxState {
cipher: Cipher,
) -> Res<Self> {
qdebug!(
"Making {:?} {} CryptoDxState, v={:?} cipher={}",
"Making {:?} {:?} CryptoDxState, v={:?} cipher={}",
direction,
epoch,
version,
Expand Down

0 comments on commit ea1ef88

Please sign in to comment.