From 8601e1e38f65afb4c53861b19b46c29aa311e50f Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 24 Feb 2022 01:13:20 -0500 Subject: [PATCH] clippy --- src/chart_manager.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chart_manager.rs b/src/chart_manager.rs index e75a2c7..7102832 100644 --- a/src/chart_manager.rs +++ b/src/chart_manager.rs @@ -124,9 +124,9 @@ impl ChartManager { // Applies `half_step` in order to make the bar graph display properly if output.0 > 0.0 { - output.0 = output.0 + half_step; + output.0 += half_step; } else { - output.0 = output.0 - half_step; + output.0 -= half_step; } output