From c547773570c8980d46025b1383db49629ca329eb Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Thu, 25 Sep 2025 14:38:21 +0200 Subject: [PATCH] use a boxed array insted of a vec --- src/grid.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grid.rs b/src/grid.rs index 1b2dc19..740f103 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -18,7 +18,7 @@ pub trait Grid { pub struct Flut { size_x: usize, size_y: usize, - cells: SyncUnsafeCell>, + cells: SyncUnsafeCell>, last_hash: SyncUnsafeCell, jpgbuf: RwLock>, } @@ -32,7 +32,7 @@ impl Flut { Flut { size_x, size_y, - cells: vec.into(), + cells: vec.into_boxed_slice().into(), last_hash: 0.into(), jpgbuf: RwLock::new(Vec::new()), }