From fa64780d1282a84f7f298fcead78ce08d512d0ae Mon Sep 17 00:00:00 2001 From: torfmaster Date: Tue, 20 Aug 2024 22:56:40 +0200 Subject: [PATCH] extract index in variable to make code more readable --- src/imageops/fast_blur.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/imageops/fast_blur.rs b/src/imageops/fast_blur.rs index 8fbc1d9936..8eb737991a 100644 --- a/src/imageops/fast_blur.rs +++ b/src/imageops/fast_blur.rs @@ -104,11 +104,12 @@ fn horizontal_fast_blur_half( let destination_row = column; let destination_column = row; - out_samples[channel_idx( + let destination_sample_index = channel_idx( channel, destination_column + destination_row * height, channel_num, - )] = val; + ); + out_samples[destination_sample_index] = val; vals[channel] = vals[channel] - extended_f( samples,