geometry: s/assert/debug_assert/
This commit is contained in:
parent
a7b681a046
commit
23fcf1f35f
@ -96,8 +96,8 @@ pub struct Rectangle<CoordData: CoordLimits<Data = CoordData> + Clone + Copy, Sp
|
||||
|
||||
impl<CoordData: CoordLimits<Data = CoordData> + Sub<Output=CoordData> + Clone + Copy, Space: CoordinateSpace> Rectangle<CoordData, Space> {
|
||||
pub fn new(top_left: Coordinates<CoordData, Space>, bottom_right: Coordinates<CoordData, Space>) -> Self {
|
||||
assert!(top_left.x <= bottom_right.x);
|
||||
assert!(top_left.y <= bottom_right.y);
|
||||
debug_assert!(top_left.x <= bottom_right.x);
|
||||
debug_assert!(top_left.y <= bottom_right.y);
|
||||
Self {
|
||||
top_left,
|
||||
bottom_right
|
||||
|
Loading…
x
Reference in New Issue
Block a user