From 92b0d8972a43708746c99d341a7404b7fa76e311 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Mon, 23 Jan 2023 03:41:04 +0100 Subject: [PATCH] fix warnings --- src/main.rs | 3 +-- src/world/loading.rs | 2 +- src/world/worldgen.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index aed3a39..0ae9e00 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 => { diff --git a/src/world/loading.rs b/src/world/loading.rs index 571c3bb..0e5cbdf 100644 --- a/src/world/loading.rs +++ b/src/world/loading.rs @@ -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, diff --git a/src/world/worldgen.rs b/src/world/worldgen.rs index 0b100b0..a3b17c5 100644 --- a/src/world/worldgen.rs +++ b/src/world/worldgen.rs @@ -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;