From dde62e4e83c166a15a52597427746de4e842091a Mon Sep 17 00:00:00 2001 From: Erin Date: Sun, 5 Nov 2017 20:38:52 -0600 Subject: [PATCH] textium: relax ordering constraints on Rect --- textium/src/geometry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/textium/src/geometry.rs b/textium/src/geometry.rs index aac77d4..b08584e 100644 --- a/textium/src/geometry.rs +++ b/textium/src/geometry.rs @@ -13,7 +13,7 @@ pub struct Rect { #[allow(dead_code)] impl Rect where T: Copy + Add + Sub + Mul - + Ord + PartialOrd + + PartialOrd { /// Returns a new rectangle given the upper-left corner and its width + height. pub fn new(x: T, y: T, w: T, h: T) -> Rect {