diff options
| author | mat <git@matdoes.dev> | 2023-12-03 02:42:45 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-12-03 02:42:45 -0600 |
| commit | a42161a203af3edeb96fbdb3bab8f832b4ccc6b5 (patch) | |
| tree | 8e77a376a374dffc17733d90c87da0c9782b3778 | |
| parent | 1f46ef8c115db0c53e21dfb6a3e633825c6747c3 (diff) | |
| download | azalea-drasl-a42161a203af3edeb96fbdb3bab8f832b4ccc6b5.tar.xz | |
clippy
| -rwxr-xr-x | azalea-client/src/account.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/client.rs | 4 | ||||
| -rw-r--r-- | azalea-client/src/local_player.rs | 10 | ||||
| -rw-r--r-- | azalea-client/src/packet_handling/login.rs | 4 | ||||
| -rw-r--r-- | azalea/src/swarm/mod.rs | 2 |
5 files changed, 4 insertions, 18 deletions
diff --git a/azalea-client/src/account.rs b/azalea-client/src/account.rs index 7ef942ed..e43d57e7 100755 --- a/azalea-client/src/account.rs +++ b/azalea-client/src/account.rs @@ -233,5 +233,3 @@ impl Account { Ok(()) } } - -fn uuid_from_username() {} diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index 16d9442b..8757bc39 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -59,9 +59,7 @@ use azalea_protocol::{ resolver, ServerAddress, }; use azalea_world::{Instance, InstanceContainer, InstanceName, PartialInstance}; -use bevy_app::{ - App, FixedUpdate, Plugin, PluginGroup, PluginGroupBuilder, PreStartup, Startup, Update, -}; +use bevy_app::{App, FixedUpdate, Plugin, PluginGroup, PluginGroupBuilder, Update}; use bevy_ecs::{ bundle::Bundle, component::Component, diff --git a/azalea-client/src/local_player.rs b/azalea-client/src/local_player.rs index cf1f7475..3b3ae89b 100644 --- a/azalea-client/src/local_player.rs +++ b/azalea-client/src/local_player.rs @@ -3,14 +3,9 @@ use std::{collections::HashMap, io, sync::Arc}; use azalea_auth::game_profile::GameProfile; use azalea_core::game_type::GameMode; use azalea_entity::Dead; -use azalea_protocol::packets::game::{ - clientbound_player_abilities_packet::ClientboundPlayerAbilitiesPacket, ServerboundGamePacket, -}; +use azalea_protocol::packets::game::clientbound_player_abilities_packet::ClientboundPlayerAbilitiesPacket; use azalea_world::{Instance, PartialInstance}; -use bevy_ecs::{ - component::Component, entity::Entity, event::EventReader, prelude::*, query::Added, - system::Query, -}; +use bevy_ecs::{component::Component, entity::Entity, prelude::*, query::Added, system::Query}; use derive_more::{Deref, DerefMut}; use parking_lot::RwLock; use thiserror::Error; @@ -20,7 +15,6 @@ use uuid::Uuid; use crate::{ events::{Event as AzaleaEvent, LocalPlayerEvents}, - raw_connection::RawConnection, ClientInformation, PlayerInfo, }; diff --git a/azalea-client/src/packet_handling/login.rs b/azalea-client/src/packet_handling/login.rs index 83a6a98d..472ac850 100644 --- a/azalea-client/src/packet_handling/login.rs +++ b/azalea-client/src/packet_handling/login.rs @@ -8,10 +8,6 @@ use bevy_ecs::prelude::*; use tokio::sync::mpsc; use tracing::error; -use crate::raw_connection::RawConnection; - -use super::game::SendPacketEvent; - // this struct is defined here anyways though so it's consistent with the other // ones diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index 5d1a73df..41a54fdd 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -536,7 +536,7 @@ impl Swarm { state: S, ) -> Result<Client, JoinError> { let address = self.address.read().clone(); - let resolved_address = self.resolved_address.read().clone(); + let resolved_address = *self.resolved_address.read(); let (bot, mut rx) = Client::start_client( self.ecs_lock.clone(), |
