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) ) ) });