Fix clippy warnings

This commit is contained in:
lukas0008 committed 2024-08-22 14:02:12 +02:00
1 parent 10ed8c0472
commit e1a1a22047
1 file changed
+3 -3
+3 -3
View File
@@ -17,7 +17,6 @@ use mio::{event::Event, Poll, Token};
use num_traits::ToPrimitive; use num_traits::ToPrimitive;
use pumpkin_entity::{entity_type::EntityType, EntityId}; use pumpkin_entity::{entity_type::EntityType, EntityId};
use pumpkin_protocol::{ use pumpkin_protocol::{
bytebuf::ByteBuffer,
client::{ client::{
config::CPluginMessage, config::CPluginMessage,
play::{ play::{
@@ -364,14 +363,15 @@ impl Server {
chunk_z: 0.into(), 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); // dbg!(chunk_pos);
let chunk_data = match chunk_data { let chunk_data = match chunk_data {
Ok(d) => d, Ok(d) => d,
Err(_) => continue, Err(_) => continue,
}; };
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
if chunk_pos == (0, 0) { if _chunk_pos == (0, 0) {
use pumpkin_protocol::bytebuf::ByteBuffer;
let mut test = ByteBuffer::empty(); let mut test = ByteBuffer::empty();
CChunkData(&chunk_data).write(&mut test); CChunkData(&chunk_data).write(&mut test);
let len = test.buf().len(); let len = test.buf().len();