diff --git a/src/clib.rs b/src/clib.rs index ceabd34..4f6f625 100644 --- a/src/clib.rs +++ b/src/clib.rs @@ -1,3 +1,5 @@ +#![feature(array_zip)] + use crate::system::Position; use crate::system::storage::{Storage, VectorStorage}; @@ -68,7 +70,7 @@ mod test { let offset = Position::in_direction(dim, sign); let next = Position { x: i, y: j } + offset; - CPosition(next.0, next.1) + CPosition(next.x, next.y) } #[test] diff --git a/src/ui.rs b/src/ui.rs index a0f6903..8c312da 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -1,3 +1,5 @@ +#![feature(array_zip)] + use std::default::Default; use std::error::Error; use bevy::{prelude::*, sprite::MaterialMesh2dBundle};