geometry: s/assert/debug_assert/
This commit is contained in:
		@@ -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> {
 | 
					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 {
 | 
					    pub fn new(top_left: Coordinates<CoordData, Space>, bottom_right: Coordinates<CoordData, Space>) -> Self {
 | 
				
			||||||
        assert!(top_left.x <= bottom_right.x);
 | 
					        debug_assert!(top_left.x <= bottom_right.x);
 | 
				
			||||||
        assert!(top_left.y <= bottom_right.y);
 | 
					        debug_assert!(top_left.y <= bottom_right.y);
 | 
				
			||||||
        Self {
 | 
					        Self {
 | 
				
			||||||
            top_left,
 | 
					            top_left,
 | 
				
			||||||
            bottom_right
 | 
					            bottom_right
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user