Skip to content

Commit e27308b

Browse files
committed
make EnumSet derive Ord and PartialOrd
1 parent ef112fe commit e27308b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/enum_set.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use core::prelude::*;
1717
use core::fmt;
1818

19-
#[deriving(Clone, PartialEq, Eq, Hash)]
19+
#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
2020
/// A specialized `Set` implementation to use enum types.
2121
pub struct EnumSet<E> {
2222
// We must maintain the invariant that no bits are set

0 commit comments

Comments
 (0)