From 171e92bc202424294ea4cd1c5105c9149522dd8b Mon Sep 17 00:00:00 2001 From: Edgar Geier Date: Mon, 6 Mar 2023 23:39:38 +0100 Subject: [PATCH] Remove unnecessary parentheses --- src/linalg/convolution.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/linalg/convolution.rs b/src/linalg/convolution.rs index 2402bb3d..b0abe994 100644 --- a/src/linalg/convolution.rs +++ b/src/linalg/convolution.rs @@ -47,11 +47,11 @@ impl> Vector { let u_f = cmp::min(i, vec - 1); if u_i == u_f { - conv[i] += self[u_i].clone() * kernel[(i - u_i)].clone(); + conv[i] += self[u_i].clone() * kernel[i - u_i].clone(); } else { for u in u_i..(u_f + 1) { if i - u < ker { - conv[i] += self[u].clone() * kernel[(i - u)].clone(); + conv[i] += self[u].clone() * kernel[i - u].clone(); } } }