diff --git a/neqo-transport/tests/common/mod.rs b/neqo-transport/tests/common/mod.rs index 84a2bc0d27..e36e66f753 100644 --- a/neqo-transport/tests/common/mod.rs +++ b/neqo-transport/tests/common/mod.rs @@ -8,7 +8,7 @@ use std::{cell::RefCell, mem, ops::Range, rc::Rc}; -use neqo_common::{event::Provider, hex_with_len, qdebug, qtrace, Datagram, Decoder, Role}; +use neqo_common::{event::Provider, hex_with_len, qtrace, Datagram, Decoder, Role}; use neqo_crypto::{ constants::{TLS_AES_128_GCM_SHA256, TLS_VERSION_1_3}, hkdf, diff --git a/neqo-transport/tests/connection.rs b/neqo-transport/tests/connection.rs index ddc0718747..d133ea4813 100644 --- a/neqo-transport/tests/connection.rs +++ b/neqo-transport/tests/connection.rs @@ -171,10 +171,10 @@ fn packet_without_frames() { packet, ); client.process_input(&empty, now()); - assert!(matches!( + assert_eq!( client.state(), - State::Closed(ConnectionError::Transport(Error::ProtocolViolation)) - )); + &State::Closed(ConnectionError::Transport(Error::ProtocolViolation)) + ); } /// Overflow the crypto buffer.