fix warnings

This commit is contained in:
griffi-gh 2023-01-23 03:41:04 +01:00
parent 710bedeaec
commit 92b0d8972a
3 changed files with 3 additions and 4 deletions

View file

@ -4,7 +4,6 @@ use shipyard::{
NonSendSync, Unique NonSendSync, Unique
}; };
use glium::{ use glium::{
Surface,
glutin::{ glutin::{
event_loop::{EventLoop, ControlFlow}, event_loop::{EventLoop, ControlFlow},
event::{Event, WindowEvent} event::{Event, WindowEvent}
@ -81,7 +80,7 @@ fn main() {
*control_flow = ControlFlow::Poll; *control_flow = ControlFlow::Poll;
match event { match event {
Event::WindowEvent { event, .. } => match event { Event::WindowEvent { event, .. } => match event {
WindowEvent::Resized(size) => { WindowEvent::Resized(_size) => {
// todo ... // todo ...
} }
WindowEvent::CloseRequested => { WindowEvent::CloseRequested => {

View file

@ -1,6 +1,6 @@
use glam::{IVec3, ivec3}; use glam::{IVec3, ivec3};
use glium::{VertexBuffer, IndexBuffer, index::PrimitiveType}; use glium::{VertexBuffer, IndexBuffer, index::PrimitiveType};
use shipyard::{View, UniqueView, UniqueViewMut, IntoIter, Workload, IntoWorkload, NonSendSync, Nothing}; use shipyard::{View, UniqueView, UniqueViewMut, IntoIter, Workload, IntoWorkload, NonSendSync};
use crate::{ use crate::{
player::LocalPlayer, player::LocalPlayer,
transform::Transform, transform::Transform,

View file

@ -4,7 +4,7 @@ use super::{
block::Block block::Block
}; };
pub fn generate_world(position: IVec3, seed: u32) -> BlockData { pub fn generate_world(_position: IVec3, _seed: u32) -> BlockData {
let mut blocks = Box::new([[[Block::Air; CHUNK_SIZE]; CHUNK_SIZE]; CHUNK_SIZE]); let mut blocks = Box::new([[[Block::Air; CHUNK_SIZE]; CHUNK_SIZE]; CHUNK_SIZE]);
blocks[0][0][0] = Block::Stone; blocks[0][0][0] = Block::Stone;
blocks[1][0][0] = Block::Stone; blocks[1][0][0] = Block::Stone;