Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-1 committed Dec 3, 2023
1 parent 1f46ef8 commit a42161a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 18 deletions.
2 changes: 0 additions & 2 deletions azalea-client/src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,5 +233,3 @@ impl Account {
Ok(())
}
}

fn uuid_from_username() {}
4 changes: 1 addition & 3 deletions azalea-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 2 additions & 8 deletions azalea-client/src/local_player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -20,7 +15,6 @@ use uuid::Uuid;

use crate::{
events::{Event as AzaleaEvent, LocalPlayerEvents},
raw_connection::RawConnection,
ClientInformation, PlayerInfo,
};

Expand Down
4 changes: 0 additions & 4 deletions azalea-client/src/packet_handling/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion azalea/src/swarm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit a42161a

Please sign in to comment.