mappings: clippy++
This commit is contained in:
parent
3af9ad408e
commit
0f73b42818
@ -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)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user