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
};
use glium::{
Surface,
glutin::{
event_loop::{EventLoop, ControlFlow},
event::{Event, WindowEvent}
@ -81,7 +80,7 @@ fn main() {
*control_flow = ControlFlow::Poll;
match event {
Event::WindowEvent { event, .. } => match event {
WindowEvent::Resized(size) => {
WindowEvent::Resized(_size) => {
// todo ...
}
WindowEvent::CloseRequested => {

View file

@ -1,6 +1,6 @@
use glam::{IVec3, ivec3};
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::{
player::LocalPlayer,
transform::Transform,

View file

@ -4,7 +4,7 @@ use super::{
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]);
blocks[0][0][0] = Block::Stone;
blocks[1][0][0] = Block::Stone;