mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-22 11:58:21 -06:00
fix warnings
This commit is contained in:
parent
710bedeaec
commit
92b0d8972a
|
@ -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 => {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue