From e27308b31b6cfc0199d95e0b49e5d107f6528197 Mon Sep 17 00:00:00 2001 From: Alexis Beingessner Date: Sat, 27 Sep 2014 16:47:53 -0400 Subject: [PATCH] make EnumSet derive Ord and PartialOrd --- src/libcollections/enum_set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcollections/enum_set.rs b/src/libcollections/enum_set.rs index 02396dc13d13..f282549f6f9a 100644 --- a/src/libcollections/enum_set.rs +++ b/src/libcollections/enum_set.rs @@ -16,7 +16,7 @@ use core::prelude::*; use core::fmt; -#[deriving(Clone, PartialEq, Eq, Hash)] +#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] /// A specialized `Set` implementation to use enum types. pub struct EnumSet { // We must maintain the invariant that no bits are set