From 0f73b42818d5d1e86c4b35b2bd267a6d9c500a10 Mon Sep 17 00:00:00 2001 From: Victoria Fischer Date: Sat, 30 Nov 2024 16:06:24 +0100 Subject: [PATCH] mappings: clippy++ --- src/mappings.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mappings.rs b/src/mappings.rs index 1549608..4569e1b 100644 --- a/src/mappings.rs +++ b/src/mappings.rs @@ -165,7 +165,7 @@ impl StrideMapping { size = Some(match size.take() { None => Rectangle::new( Coordinates::new(x, y), - Coordinates::new(x, (y + length - 1)), + Coordinates::new(x, y + length - 1), ), Some(s) => Rectangle::new( Coordinates::new( @@ -174,7 +174,7 @@ impl StrideMapping { ), Coordinates::new( max(s.bottom_right.x, x), - max(s.bottom_right.y, (y + length - 1)) + max(s.bottom_right.y, y + length - 1) ) ) });