From acc5aca0ff474abc4f3a80c3aecf89da068d6634 Mon Sep 17 00:00:00 2001 From: Snowiiii Date: Sun, 13 Oct 2024 18:59:20 +0200 Subject: [PATCH] Fix: clippy --- pumpkin/src/client/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pumpkin/src/client/mod.rs b/pumpkin/src/client/mod.rs index 47ed87e9..50003017 100644 --- a/pumpkin/src/client/mod.rs +++ b/pumpkin/src/client/mod.rs @@ -384,7 +384,7 @@ impl Client { } } - if received_data.len() != 0 { + if !received_data.is_empty() { let mut dec = self.dec.lock(); dec.queue_slice(&received_data); match dec.decode() {