From 63e6e06c0f75a12282da9a6c4e03c8720f019e2d Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 6 Apr 2022 11:36:17 -0400 Subject: [PATCH] clippy --- src/function.rs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/function.rs b/src/function.rs index 6de7fcc..c8d326c 100644 --- a/src/function.rs +++ b/src/function.rs @@ -336,15 +336,13 @@ impl FunctionEntry { } // Plot derivative data - if self.derivative { - if !self.derivative_data.is_empty() { - plot_ui.line( - self.derivative_data - .to_line() - .color(Color32::GREEN) - .name(derivative_str), - ); - } + if self.derivative && !self.derivative_data.is_empty() { + plot_ui.line( + self.derivative_data + .to_line() + .color(Color32::GREEN) + .name(derivative_str), + ); } // Plot extrema points