From 561a7d7a743c3b40e86680200b52e9f15d53fadd Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Mon, 4 May 2026 10:04:27 +0300 Subject: [PATCH] chore: Fix more clippy lints --- neqo-transport/src/connection/tests/handshake.rs | 2 +- neqo-transport/tests/retry.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/neqo-transport/src/connection/tests/handshake.rs b/neqo-transport/src/connection/tests/handshake.rs index b68a6d0058..46a0a167f1 100644 --- a/neqo-transport/src/connection/tests/handshake.rs +++ b/neqo-transport/src/connection/tests/handshake.rs @@ -563,7 +563,7 @@ fn reorder_handshake() { c_stats_before.packets_rx, usize::from(s_hs1_has_initial) + usize::from(s_hs2_has_initial) ); - assert!(c_stats_before.dropped_rx == 0); + assert_eq!(c_stats_before.dropped_rx, 0); // Deliver all Initial packets. client.process_input(s_initial_2, now); diff --git a/neqo-transport/tests/retry.rs b/neqo-transport/tests/retry.rs index a95b17c0dd..b673870bf1 100644 --- a/neqo-transport/tests/retry.rs +++ b/neqo-transport/tests/retry.rs @@ -287,7 +287,7 @@ fn retry_after_initial() { // We need to have the client just process the Initial. let dgram = client.process(Some(server_initial), now()).dgram(); assert!(dgram.is_some()); - assert!(*client.state() != State::Connected); + assert_ne!(*client.state(), State::Connected); let retry = retry_server.process(cinit, now()).dgram(); // Retry! assert!(retry.is_some());