From 42e76d82a56defbe4eb247f76f2e98e60241e14a Mon Sep 17 00:00:00 2001 From: nazeh Date: Thu, 23 Nov 2023 12:00:11 +0300 Subject: [PATCH] chore: clippy --- pkarr/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkarr/src/lib.rs b/pkarr/src/lib.rs index 53553b0..fb3d3ef 100644 --- a/pkarr/src/lib.rs +++ b/pkarr/src/lib.rs @@ -219,10 +219,10 @@ impl PkarrClient { // In the rare ocasion of timestamp collission, // we use the one with the largest value - if signed_packet.timestamp() == most_recent.timestamp() { - if signed_packet.encoded_packet() < most_recent.encoded_packet() { - continue; - } + if signed_packet.timestamp() == most_recent.timestamp() + && signed_packet.encoded_packet() < most_recent.encoded_packet() + { + continue; } }