From 3f77dfc099ab3fddfd2a48319fdf942ce320161c Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sun, 21 May 2023 12:24:45 +0200 Subject: [PATCH] fix warnings; remove unused imports --- kubi/src/block_placement.rs | 2 +- kubi/src/networking/handshake.rs | 7 ++----- kubi/src/prefabs/texture.rs | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/kubi/src/block_placement.rs b/kubi/src/block_placement.rs index 434b55c..cc0a747 100644 --- a/kubi/src/block_placement.rs +++ b/kubi/src/block_placement.rs @@ -1,4 +1,4 @@ -use shipyard::{UniqueViewMut, UniqueView, View, IntoIter, ViewMut, EntitiesViewMut, Component, Workload, IntoWorkload}; +use shipyard::{UniqueViewMut, UniqueView, View, IntoIter, ViewMut, EntitiesViewMut, Workload, IntoWorkload}; use glium::glutin::event::VirtualKeyCode; use kubi_shared::{ block::Block, diff --git a/kubi/src/networking/handshake.rs b/kubi/src/networking/handshake.rs index 4af3689..5bc918a 100644 --- a/kubi/src/networking/handshake.rs +++ b/kubi/src/networking/handshake.rs @@ -5,10 +5,9 @@ use kubi_shared::{ messages::{ClientToServerMessage, ServerToClientMessage, S_SERVER_HELLO}, state::ClientJoinState, channels::CHANNEL_AUTH, - client::Username, }, }; -use crate::player::{MainPlayer, spawn_local_player_multiplayer, spawn_remote_player_multiplayer}; +use crate::player::{spawn_local_player_multiplayer, spawn_remote_player_multiplayer}; use super::{UdpClient, NetworkEvent}; pub fn set_client_join_state_to_connected( @@ -20,10 +19,8 @@ pub fn set_client_join_state_to_connected( pub fn say_hello( mut client: UniqueViewMut, - main_player: View, - username: View ) { - let username = "XxX-FishFucker-69420-XxX".into(); //(&main_player, &username).iter().next().unwrap().1.0.clone(); + let username = "XxX-FishFucker-69420-XxX".into(); let password = None; log::info!("Authenticating"); client.0.send( diff --git a/kubi/src/prefabs/texture.rs b/kubi/src/prefabs/texture.rs index 602903e..845f1b6 100644 --- a/kubi/src/prefabs/texture.rs +++ b/kubi/src/prefabs/texture.rs @@ -1,6 +1,6 @@ use strum::IntoEnumIterator; use rayon::prelude::*; -use std::{fs::File, path::PathBuf, io::BufReader}; +use std::{path::PathBuf, io::BufReader}; use glium::{texture::{SrgbTexture2dArray, RawImage2d, MipmapsOption}, backend::Facade}; use crate::filesystem::open_asset; use super::AssetPaths;