From 23fcf1f35f070d79e67cb4c2a3e7f1654842c8dd Mon Sep 17 00:00:00 2001 From: Victoria Fischer Date: Sat, 23 Nov 2024 15:01:24 +0100 Subject: [PATCH] geometry: s/assert/debug_assert/ --- src/geometry.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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