diff --git a/src/geometry.rs b/src/geometry.rs index c6e0642..540ef71 100644 --- a/src/geometry.rs +++ b/src/geometry.rs @@ -96,8 +96,8 @@ pub struct Rectangle + Clone + Copy, Sp impl + Sub + Clone + Copy, Space: CoordinateSpace> Rectangle { pub fn new(top_left: Coordinates, bottom_right: Coordinates) -> 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