From 1be8e3bd01e497e4f9b72dd6c8c38d2bcc4aaf06 Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Sat, 4 Mar 2023 12:58:47 +0000 Subject: [PATCH] Make program build --- src/clib.rs | 4 +++- src/ui.rs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) 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};