From 396862ded5f76cb286af9e67b8df2d2e75dd893c Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Fri, 13 May 2022 08:49:32 +0200 Subject: [PATCH] Stuff --- mas/fractals/mandel/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mas/fractals/mandel/src/main.rs b/mas/fractals/mandel/src/main.rs index ca8954d..3f6d74b 100644 --- a/mas/fractals/mandel/src/main.rs +++ b/mas/fractals/mandel/src/main.rs @@ -82,9 +82,9 @@ fn main() { } if render_new { - let mut maps = Vec::new(); + let mut maps = &mut Vec::new(); for thread_id in 0..threads { - thread::spawn(move || { // do cool threads for performance + thread::spawn(|| { // do cool threads for performance let mut pixmap = render::prerender_mandelbrot( width, height, depth, zx, zy, dx, dy, @@ -101,4 +101,3 @@ fn main() { } //::std::thread::sleep(Duration::new(0, 1_000_000_000u32 / 60)); } -