From 8ee21c35c3e8a8b2f04c78cb9758c3ea16dbbf56 Mon Sep 17 00:00:00 2001 From: Waveplate Date: Sat, 2 Nov 2024 18:37:06 -0700 Subject: [PATCH] add_noise_rand wants mutable arg --- src/effects.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects.rs b/src/effects.rs index 7734454..4103bb0 100644 --- a/src/effects.rs +++ b/src/effects.rs @@ -103,7 +103,7 @@ pub fn apply_effects( // Adjust noise if args.noise { - noise::add_noise_rand(photon_image.clone()); + noise::add_noise_rand(&mut photon_image); } // Adjust sharpen