fix: all clippy warns
This commit is contained in:
1 parent
ae69bbc7f1
commit
19af3618cb
13 files changed
+44
-48
No files matched your search
@@ -109,7 +109,7 @@ impl ClientPacketProcessor for Client {
|
||||
|
||||
if let Some(uuid) = self.uuid {
|
||||
if let Some(name) = &self.name {
|
||||
let packet = CLoginSuccess::new(uuid, name.clone(), 0, false);
|
||||
let packet = CLoginSuccess::new(uuid, name.clone(), &[], false); // todo
|
||||
self.send_packet(packet)
|
||||
.unwrap_or_else(|e| self.kick(&e.to_string()));
|
||||
} else {
|
||||
|
||||
@@ -35,14 +35,14 @@ pub mod player_packet;
|
||||
use client_packet::ClientPacketProcessor;
|
||||
|
||||
pub struct PlayerConfig {
|
||||
locale: String, // 16
|
||||
view_distance: i8,
|
||||
chat_mode: ChatMode,
|
||||
chat_colors: bool,
|
||||
skin_parts: u8,
|
||||
main_hand: Hand,
|
||||
text_filtering: bool,
|
||||
server_listing: bool,
|
||||
pub locale: String, // 16
|
||||
pub view_distance: i8,
|
||||
pub chat_mode: ChatMode,
|
||||
pub chat_colors: bool,
|
||||
pub skin_parts: u8,
|
||||
pub main_hand: Hand,
|
||||
pub text_filtering: bool,
|
||||
pub server_listing: bool,
|
||||
}
|
||||
|
||||
pub struct Client {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use pumpkin_protocol::server::play::SConfirmTeleport;
|
||||
|
||||
use crate::{entity::player::Player, server::Server};
|
||||
use crate::server::Server;
|
||||
|
||||
use super::Client;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
use std::{
|
||||
io::Cursor,
|
||||
rc::Rc,
|
||||
sync::atomic::{AtomicI32, Ordering},
|
||||
};
|
||||
|
||||
@@ -9,14 +8,11 @@ use mio::{event::Event, Poll};
|
||||
use pumpkin_protocol::{
|
||||
client::{
|
||||
config::CPluginMessage,
|
||||
play::{CChunkDataUpdateLight, CGameEvent, CLogin, CSyncPlayerPostion, SkyLight},
|
||||
play::{CChunkDataUpdateLight, CGameEvent, CLogin, CSyncPlayerPostion},
|
||||
},
|
||||
BitSet, PacketError, Players, Sample, StatusResponse, VarInt, VarInt32, Version,
|
||||
};
|
||||
use pumpkin_world::{
|
||||
chunk::{TestChunk, SKY_LIGHT_ARRAYS},
|
||||
World,
|
||||
};
|
||||
use pumpkin_world::chunk::TestChunk;
|
||||
use rsa::{rand_core::OsRng, traits::PublicKeyParts, RsaPrivateKey, RsaPublicKey};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
|
||||
Reference in new issue
Block a user