Skip to content

Commit

Permalink
make EnumSet derive Ord and PartialOrd
Browse files Browse the repository at this point in the history
  • Loading branch information
Gankra committed Sep 27, 2014
1 parent ef112fe commit e27308b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcollections/enum_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<E> {
// We must maintain the invariant that no bits are set
Expand Down

0 comments on commit e27308b

Please sign in to comment.