]> git.lizzy.rs Git - rust.git/blobdiff - src/libcollections/dlist.rs
create a sensible comparison trait hierarchy
[rust.git] / src / libcollections / dlist.rs
index 6c059d3f40c427cc8c5e8765460ba7c652c97f3a..9193d31931067da76c6aa4c480c1e1e3577b6d7d 100644 (file)
@@ -607,7 +607,7 @@ fn ne(&self, other: &DList<A>) -> bool {
     }
 }
 
-impl<A: Eq + Ord> Ord for DList<A> {
+impl<A: Ord> Ord for DList<A> {
     fn lt(&self, other: &DList<A>) -> bool {
         iter::order::lt(self.iter(), other.iter())
     }