From e1a1a22047977abe9cd2640909bc41e3eadcfbfb Mon Sep 17 00:00:00 2001 From: lukas0008 Date: Thu, 22 Aug 2024 14:02:12 +0200 Subject: [PATCH] Fix clippy warnings --- pumpkin/src/server.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pumpkin/src/server.rs b/pumpkin/src/server.rs index f45c525fc..0316a34b8 100644 --- a/pumpkin/src/server.rs +++ b/pumpkin/src/server.rs @@ -17,7 +17,6 @@ use mio::{event::Event, Poll, Token}; use num_traits::ToPrimitive; use pumpkin_entity::{entity_type::EntityType, EntityId}; use pumpkin_protocol::{ - bytebuf::ByteBuffer, client::{ config::CPluginMessage, play::{ @@ -364,14 +363,15 @@ impl Server { chunk_z: 0.into(), }); - while let Some((chunk_pos, chunk_data)) = chunk_receiver.recv().await { + while let Some((_chunk_pos, chunk_data)) = chunk_receiver.recv().await { // dbg!(chunk_pos); let chunk_data = match chunk_data { Ok(d) => d, Err(_) => continue, }; #[cfg(debug_assertions)] - if chunk_pos == (0, 0) { + if _chunk_pos == (0, 0) { + use pumpkin_protocol::bytebuf::ByteBuffer; let mut test = ByteBuffer::empty(); CChunkData(&chunk_data).write(&mut test); let len = test.buf().len();