From 1979d3310c0cfb48483a2a66755b5cc7ef7d208d Mon Sep 17 00:00:00 2001 From: Alexander Medvedev Date: Wed, 26 Feb 2025 20:30:39 +0100 Subject: [PATCH] fix clippy --- src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.rs b/src/client.rs index 6f9cd6f..0046d7e 100644 --- a/src/client.rs +++ b/src/client.rs @@ -20,7 +20,7 @@ use std::collections::VecDeque; use std::net::SocketAddr; use std::sync::atomic::AtomicU32; use std::sync::{Arc, atomic::AtomicBool}; -use std::time::{Instant, SystemTime, UNIX_EPOCH}; +use std::time::{SystemTime, UNIX_EPOCH}; use tokio::io::{AsyncReadExt, AsyncWriteExt}; use tokio::{ net::{ @@ -161,7 +161,7 @@ impl Client { if self .message_spam_cooldown .fetch_sub(1, std::sync::atomic::Ordering::Relaxed) - <= 0 + == 0 { self.message_spam_cooldown .store(spam_message_delay, std::sync::atomic::Ordering::Relaxed);