fix warnings; remove unused imports

This commit is contained in:
griffi-gh 2023-05-21 12:24:45 +02:00
parent c8ff48d34b
commit 3f77dfc099
3 changed files with 4 additions and 7 deletions

View file

@ -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 glium::glutin::event::VirtualKeyCode;
use kubi_shared::{ use kubi_shared::{
block::Block, block::Block,

View file

@ -5,10 +5,9 @@ use kubi_shared::{
messages::{ClientToServerMessage, ServerToClientMessage, S_SERVER_HELLO}, messages::{ClientToServerMessage, ServerToClientMessage, S_SERVER_HELLO},
state::ClientJoinState, state::ClientJoinState,
channels::CHANNEL_AUTH, 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}; use super::{UdpClient, NetworkEvent};
pub fn set_client_join_state_to_connected( pub fn set_client_join_state_to_connected(
@ -20,10 +19,8 @@ pub fn set_client_join_state_to_connected(
pub fn say_hello( pub fn say_hello(
mut client: UniqueViewMut<UdpClient>, mut client: UniqueViewMut<UdpClient>,
main_player: View<MainPlayer>,
username: View<Username>
) { ) {
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; let password = None;
log::info!("Authenticating"); log::info!("Authenticating");
client.0.send( client.0.send(

View file

@ -1,6 +1,6 @@
use strum::IntoEnumIterator; use strum::IntoEnumIterator;
use rayon::prelude::*; 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 glium::{texture::{SrgbTexture2dArray, RawImage2d, MipmapsOption}, backend::Facade};
use crate::filesystem::open_asset; use crate::filesystem::open_asset;
use super::AssetPaths; use super::AssetPaths;