mappings: clippy++

This commit is contained in:
Victoria Fischer 2024-11-30 16:06:24 +01:00
parent 3af9ad408e
commit 0f73b42818

View File

@ -165,7 +165,7 @@ impl<const STRIDE_NUM: usize> StrideMapping<STRIDE_NUM> {
size = Some(match size.take() { size = Some(match size.take() {
None => Rectangle::new( None => Rectangle::new(
Coordinates::new(x, y), Coordinates::new(x, y),
Coordinates::new(x, (y + length - 1)), Coordinates::new(x, y + length - 1),
), ),
Some(s) => Rectangle::new( Some(s) => Rectangle::new(
Coordinates::new( Coordinates::new(
@ -174,7 +174,7 @@ impl<const STRIDE_NUM: usize> StrideMapping<STRIDE_NUM> {
), ),
Coordinates::new( Coordinates::new(
max(s.bottom_right.x, x), max(s.bottom_right.x, x),
max(s.bottom_right.y, (y + length - 1)) max(s.bottom_right.y, y + length - 1)
) )
) )
}); });