From 5c84a0b4d20f5e001eb884c8cb734ae8060ca2d8 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Mon, 28 Feb 2022 12:37:51 -0500 Subject: [PATCH] add ***very important*** comment --- src/function.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/function.rs b/src/function.rs index 14a5538..6f51a35 100644 --- a/src/function.rs +++ b/src/function.rs @@ -182,7 +182,7 @@ impl Function { (1..=self.pixel_width) .map(|x| (x as f64 / resolution as f64) + min_x) .map(|x| { - let i_option = x_data.iter().position(|&r| r == x); + let i_option = x_data.iter().position(|&r| r == x); // Optimize this later, this could be done much much better if let Some(i) = i_option { back_cache[i]