Skip to content

Commit 1979d33

Browse files
committed
fix clippy
1 parent 0f348a8 commit 1979d33

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::collections::VecDeque;
2020
use std::net::SocketAddr;
2121
use std::sync::atomic::AtomicU32;
2222
use std::sync::{Arc, atomic::AtomicBool};
23-
use std::time::{Instant, SystemTime, UNIX_EPOCH};
23+
use std::time::{SystemTime, UNIX_EPOCH};
2424
use tokio::io::{AsyncReadExt, AsyncWriteExt};
2525
use tokio::{
2626
net::{
@@ -161,7 +161,7 @@ impl Client {
161161
if self
162162
.message_spam_cooldown
163163
.fetch_sub(1, std::sync::atomic::Ordering::Relaxed)
164-
<= 0
164+
== 0
165165
{
166166
self.message_spam_cooldown
167167
.store(spam_message_delay, std::sync::atomic::Ordering::Relaxed);

0 commit comments

Comments
 (0)