This commit is contained in:
2018-01-05 19:27:29 +01:00
parent 2ab88456ca
commit ab66c25813

View File

@@ -119,12 +119,11 @@ impl BitSet {
if self.len() > other.len() {
false
} else {
self.blocks.iter()
.all(|(key, block_a)| {
match other.blocks.get(key) {
self.blocks
.iter()
.all(|(key, block_a)| match other.blocks.get(key) {
Some(block_b) => block_a | block_b == *block_b,
None => false
}
None => false,
})
}
}