From e945f53395be9e0cd1e3a6894bc5e7fa08330298 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 20 Jun 2024 19:44:24 +0200 Subject: refactor(engine): remove matrix new function Copy bound --- engine/src/data_types/matrix.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/src/data_types') diff --git a/engine/src/data_types/matrix.rs b/engine/src/data_types/matrix.rs index c5cc63a..3a29ae2 100644 --- a/engine/src/data_types/matrix.rs +++ b/engine/src/data_types/matrix.rs @@ -13,10 +13,10 @@ impl Matrix Self where - Value: Default + Copy, + Value: Default, { Self { - items: [[Value::default(); ROWS]; COLUMNS], + items: std::array::from_fn(|_| std::array::from_fn(|_| Value::default())), } } @@ -37,7 +37,7 @@ impl Matrix Default for Matrix where - Value: Copy + Default, + Value: Default, { fn default() -> Self { -- cgit v1.2.3-18-g5258