From 81de6728fc12d2ec50f511c8b534f615173722fc Mon Sep 17 00:00:00 2001 From: Marc Planard Date: Sat, 10 Jun 2023 17:08:08 +0200 Subject: [PATCH] fix warnings --- src/main.rs | 2 +- src/transformer/rotate.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 669642c..e37a2b8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -73,7 +73,7 @@ fn run_all() -> LJResult<()> { let frame = get_next_frame(&config, &transformers, &mut rs, order == Order::Black)?; // For now, draw all the time - tracer.draw(frame, 10_000)?; + tracer.draw(frame, 40_000)?; } info!("Exiting, stoping device."); diff --git a/src/transformer/rotate.rs b/src/transformer/rotate.rs index ca574ba..177a0d3 100644 --- a/src/transformer/rotate.rs +++ b/src/transformer/rotate.rs @@ -23,8 +23,8 @@ impl Transformers for Rotate { fn apply(&self, point_list: &[Point]) -> Vec { point_list.iter() .map(| pt | { - let dx = (pt.x - self.cx); - let dy = (pt.y - self.cy); + let dx = pt.x - self.cx; + let dy = pt.y - self.cy; let cos = self.angle.cos(); let sin = self.angle.sin(); let x = (dx * cos - dy * sin) + self.cx;