Make program build

This commit is contained in:
Joshua Coles 2023-03-04 12:58:47 +00:00
parent 7cfa5092e8
commit 1be8e3bd01
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,5 @@
#![feature(array_zip)]
use crate::system::Position; use crate::system::Position;
use crate::system::storage::{Storage, VectorStorage}; use crate::system::storage::{Storage, VectorStorage};
@ -68,7 +70,7 @@ mod test {
let offset = Position::in_direction(dim, sign); let offset = Position::in_direction(dim, sign);
let next = Position { x: i, y: j } + offset; let next = Position { x: i, y: j } + offset;
CPosition(next.0, next.1) CPosition(next.x, next.y)
} }
#[test] #[test]

View File

@ -1,3 +1,5 @@
#![feature(array_zip)]
use std::default::Default; use std::default::Default;
use std::error::Error; use std::error::Error;
use bevy::{prelude::*, sprite::MaterialMesh2dBundle}; use bevy::{prelude::*, sprite::MaterialMesh2dBundle};