diff --git a/src/geometry.rs b/src/geometry.rs index bed20ad..2c78916 100644 --- a/src/geometry.rs +++ b/src/geometry.rs @@ -100,9 +100,9 @@ pub struct Rectangle { } impl Rectangle { - pub fn new(top_left: Coordinates, bottom_right: Coordinates) -> Self { - debug_assert!(top_left.x <= bottom_right.x); - debug_assert!(top_left.y <= bottom_right.y); + pub const fn new(top_left: Coordinates, bottom_right: Coordinates) -> Self { + //debug_assert!(top_left.x <= bottom_right.x); + //debug_assert!(top_left.y <= bottom_right.y); Self { top_left, bottom_right