make fill point asserts persistent
authoralfadur
Wed, 07 Nov 2018 00:02:48 +0300
changeset 14171 6205a5230d23
parent 14170 8e2e98760003
child 14172 3c8a33ba06ba
make fill point asserts persistent
rust/land2d/src/lib.rs
--- a/rust/land2d/src/lib.rs	Tue Nov 06 23:45:54 2018 +0300
+++ b/rust/land2d/src/lib.rs	Wed Nov 07 00:02:48 2018 +0300
@@ -122,8 +122,8 @@
     }
 
     pub fn fill(&mut self, start_point: Point, border_value: T, fill_value: T) {
-        debug_assert!(self.is_valid_coordinate(start_point.x - 1, start_point.y));
-        debug_assert!(self.is_valid_coordinate(start_point.x, start_point.y));
+        assert!(self.is_valid_coordinate(start_point.x - 1, start_point.y));
+        assert!(self.is_valid_coordinate(start_point.x, start_point.y));
 
         let mask = self.mask;
         let width = self.width();