!(*self & other).is_empty()
}
- /// Returns `true` all of the flags in `other` are contained within `self`.
+ /// Returns `true` if all of the flags in `other` are contained within `self`.
#[inline]
pub fn contains(&self, other: $BitFlags) -> bool {
(*self & other) == other
#[cfg(test)]
#[allow(non_upper_case_globals)]
mod tests {
- use std::hash::{Hash, Hasher, SipHasher};
+ use std::hash::{Hash, Hasher};
+ use std::collections::hash_map::DefaultHasher;
use std::option::Option::{None, Some};
bitflags! {
}
fn hash<T: Hash>(t: &T) -> u64 {
- let mut s = SipHasher::new();
+ let mut s = DefaultHasher::new();
t.hash(&mut s);
s.finish()
}